fix: postbuilds

This commit is contained in:
2026-08-09 23:43:30 -04:00
parent 7fb2db5ed7
commit 77a4ee39b5
3 changed files with 17 additions and 14 deletions
@@ -30,8 +30,8 @@ $folderCopies = @(
@{ Source = "Orbis\DLCImages"; Dest = "PS4_GAME\Orbis\DLCImages" },
@{ Source = "OrbisMedia\Tutorial"; Dest = "PS4_GAME\Orbis\Tutorial" },
@{ Source = "$env:SCE_ORBIS_SDK_DIR\target\sce_module"; Dest = "PS4_GAME\sce_module" },
@{ Source = "Common\Postbuilds\Contents\Orbis\sce_gls"; Dest = "PS4_GAME\sce_gls" },
@{ Source = "Common\Postbuilds\Contents\Orbis\sce_sys"; Dest = "PS4_GAME\sce_sys" }
@{ Source = Join-Path $PSScriptRoot "Contents\Orbis\sce_gls"; Dest = "PS4_GAME\sce_gls" },
@{ Source = Join-Path $PSScriptRoot "Contents\Orbis\sce_sys"; Dest = "PS4_GAME\sce_sys" }
)
foreach ($copy in $folderCopies) {
@@ -127,6 +127,8 @@ if (-not (Test-Path $genGp4)) {
Write-Host "Orbis Postbuild: '$pkgSrc' not found, skipping PKG creation."
} else {
Write-Host "Orbis Postbuild: Generating GP4..."
Copy-Item -Path (Join-Path $pkgSrc "\sce_sys\param.sfo") -Destination (Join-Path $OutDir "param.sfo.bak") -Force
$proc = Start-Process -FilePath $genGp4 -ArgumentList $pkgSrc `
-WorkingDirectory (Split-Path $pkgSrc -Parent) `
-NoNewWindow -Wait -PassThru
@@ -148,6 +150,7 @@ if (-not (Test-Path $genGp4)) {
& $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.
Copy-Item -Path (Join-Path $OutDir "param.sfo.bak") -Destination (Join-Path $pkgSrc "\sce_sys\param.sfo") -Force # str1k3r - forces the .bak to replace the .sfo so we dont run into "Failed to get TITLE_ID".
Write-Host "Orbis Postbuild: PKG created at $pkgPath"
}