feat(Orbis): PKG Generation
This commit is contained in:
1 parent
04b2a090d0
commit
d13b84cada
9 files changed
+29
-13
No files matched your search
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
|
# Make Orbis PKG
|
||||||
|
$tools = Join-Path $env:SCE_ROOT_DIR "\ORBIS\Tools\Publishing Tools\bin"
|
||||||
$pkgSrc = Join-Path $OutDir "PS4_GAME"
|
$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"
|
$pubCmd = Join-Path $tools "orbis-pub-cmd.exe"
|
||||||
|
|
||||||
$repoRoot = Split-Path ($ProjectDir.TrimEnd('\', '/')) -Parent
|
$pkgPath = Join-Path $OutDir "Minecraft.Client.pkg"
|
||||||
$pkgPath = Join-Path $repoRoot "Minecraft.Client.pkg"
|
$gp4Name = $pkgSrc.TrimEnd('\','/')
|
||||||
$pkgSrc = Join-Path $OutDir "PS4_GAME"
|
$gp4File = "$gp4Name.gp4"
|
||||||
|
|
||||||
if (Test-Path $pkgPath) {
|
if (Test-Path $pkgPath) {
|
||||||
Remove-Item $pkgPath -Force
|
Remove-Item $pkgPath -Force
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (-not (Test-Path $genGp4)) {
|
if (-not (Test-Path $genGp4)) {
|
||||||
# Write-Host "Orbis Postbuild: gengp4_app.exe not found, skipping PKG creation."
|
Write-Host "Orbis Postbuild: gengp4_app.exe not found, skipping PKG creation."
|
||||||
#} elseif (-not (Test-Path $pkgSrc)) {
|
} elseif (-not (Test-Path $pkgSrc)) {
|
||||||
# Write-Host "Orbis Postbuild: '$pkgSrc' not found, skipping PKG creation."
|
Write-Host "Orbis Postbuild: '$pkgSrc' not found, skipping PKG creation."
|
||||||
#} else {
|
} else {
|
||||||
# All the PKG stuff goes here, i couldnt get it working consistently
|
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
|
# Make PSVita VPK
|
||||||
$repoRoot = Split-Path ($ProjectDir.TrimEnd('\', '/')) -Parent
|
$vpkPath = Join-Path $OutDir "Minecraft.Client.vpk"
|
||||||
$vpkPath = Join-Path $repoRoot "Minecraft.Client.vpk"
|
|
||||||
$vpkSrc = Join-Path $OutDir "PSVITA_GAME"
|
$vpkSrc = Join-Path $OutDir "PSVITA_GAME"
|
||||||
$sevenZip = "C:\Program Files\7-Zip\7z.exe"
|
$sevenZip = "C:\Program Files\7-Zip\7z.exe"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user