feat(Orbis): PKG Generation
This commit is contained in:
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 55 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 52 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 110 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 45 KiB |
Binary file not shown.
@@ -107,23 +107,40 @@ foreach ($dir in $delDirs) {
|
||||
}
|
||||
|
||||
# Make Orbis PKG
|
||||
$tools = Join-Path $env:SCE_ROOT_DIR "\ORBIS\Tools\Publishing Tools\bin"
|
||||
$pkgSrc = Join-Path $OutDir "PS4_GAME"
|
||||
|
||||
$genGp4 = Join-Path $tools "gengp4_app.exe"
|
||||
$genGp4 = Join-Path $ProjectDir "Common\Postbuilds\Executables\gengp4_app.exe"
|
||||
$pubCmd = Join-Path $tools "orbis-pub-cmd.exe"
|
||||
|
||||
$repoRoot = Split-Path ($ProjectDir.TrimEnd('\', '/')) -Parent
|
||||
$pkgPath = Join-Path $repoRoot "Minecraft.Client.pkg"
|
||||
$pkgSrc = Join-Path $OutDir "PS4_GAME"
|
||||
$pkgPath = Join-Path $OutDir "Minecraft.Client.pkg"
|
||||
$gp4Name = $pkgSrc.TrimEnd('\','/')
|
||||
$gp4File = "$gp4Name.gp4"
|
||||
|
||||
if (Test-Path $pkgPath) {
|
||||
Remove-Item $pkgPath -Force
|
||||
}
|
||||
|
||||
#if (-not (Test-Path $genGp4)) {
|
||||
# Write-Host "Orbis Postbuild: gengp4_app.exe not found, skipping PKG creation."
|
||||
#} elseif (-not (Test-Path $pkgSrc)) {
|
||||
# Write-Host "Orbis Postbuild: '$pkgSrc' not found, skipping PKG creation."
|
||||
#} else {
|
||||
# All the PKG stuff goes here, i couldnt get it working consistently
|
||||
#}
|
||||
if (-not (Test-Path $genGp4)) {
|
||||
Write-Host "Orbis Postbuild: gengp4_app.exe not found, skipping PKG creation."
|
||||
} elseif (-not (Test-Path $pkgSrc)) {
|
||||
Write-Host "Orbis Postbuild: '$pkgSrc' not found, skipping PKG creation."
|
||||
} else {
|
||||
Write-Host "Orbis Postbuild: Generating GP4..."
|
||||
& $genGp4 $pkgSrc
|
||||
|
||||
if (-not (Test-Path $gp4File)) {
|
||||
Write-Host "Orbis Postbuild ERROR: $gp4File was not created"
|
||||
return
|
||||
}
|
||||
|
||||
Write-Host "Orbis Postbuild: Patching GP4 default_id..."
|
||||
(Get-Content $gp4File) -replace 'default_id="1"', 'default_id="0"' | Set-Content $gp4File
|
||||
|
||||
Write-Host "Orbis Postbuild: Building PKG..."
|
||||
& $pubCmd img_create $gp4File $pkgPath
|
||||
|
||||
(Get-Content $gp4File) -replace 'default_id="1"', 'default_id="0"' | Set-Content $gp4File # str1k3r - ran again so we can open the GP4 file without it throwing a error.
|
||||
|
||||
Write-Host "Orbis Postbuild: PKG created at $pkgPath"
|
||||
}
|
||||
@@ -104,8 +104,7 @@ foreach ($dir in $delDirs) {
|
||||
}
|
||||
|
||||
# Make PSVita VPK
|
||||
$repoRoot = Split-Path ($ProjectDir.TrimEnd('\', '/')) -Parent
|
||||
$vpkPath = Join-Path $repoRoot "Minecraft.Client.vpk"
|
||||
$vpkPath = Join-Path $OutDir "Minecraft.Client.vpk"
|
||||
$vpkSrc = Join-Path $OutDir "PSVITA_GAME"
|
||||
$sevenZip = "C:\Program Files\7-Zip\7z.exe"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user