Files
cafeberry/Minecraft.Client/Common/Postbuilds/Xbox-postbuild.ps1
T
f17ce45d6d feat: Orbis & PSVita builds, Durango postbuild & More (#10)
This fixes Orbis & PSVita builds along with adds a Durango postbuild and moves PS3 to the new SonyLeaderboardManager introduced in TU19

This also fixes the Orbis strings and gets some of the other Windows64 build configurations mostly building.

---------

Co-authored-by: str1k3r <115313679+S1l3ntStr1ke87@users.noreply.github.com>
Co-authored-by: str1k3r <1+str1k3r@noreply.localhost>
Co-authored-by: 552eden <552eden@gmail.com>
Co-authored-by: ubergamer-pie <16+ubergamer-pie@noreply.localhost>
Co-authored-by: str1k3r <15+str1k3r@noreply.neolegacy.dev>
Co-authored-by: pieeebot <10+pieeebot@noreply.neolegacy.dev>
Reviewed-on: #10
2026-08-02 13:40:35 +00:00

52 lines
1.7 KiB
PowerShell

param(
[string]$OutDir,
[string]$ProjectDir
)
Write-Host "Xbox Postbuild: script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
$directories = @(
"res",
"Tutorial"
)
foreach ($dir in $directories) {
New-Item -ItemType Directory -Path (Join-Path $OutDir $dir) -Force | Out-Null
}
$copies = @(
@{ Source = "Common\res"; Dest = "res" }
)
foreach ($copy in $copies) {
$src = Join-Path $ProjectDir $copy.Source
$dst = Join-Path $OutDir $copy.Dest
if (Test-Path $src) {
xcopy /q /y /i /s /e /d "$src" "$dst" 2>$null
}
}
$fileCopies = @(
@{ Source = "Xbox\kinect\speech\nuisp1031"; Dest = "nuisp1031" },
@{ Source = "Xbox\kinect\speech\nuisp1033"; Dest = "nuisp1033" },
@{ Source = "Xbox\kinect\speech\nuisp1036"; Dest = "nuisp1036" },
@{ Source = "Xbox\kinect\speech\nuisp1041"; Dest = "nuisp1040" },
@{ Source = "Xbox\kinect\speech\nuisp1041"; Dest = "nuisp1041" },
@{ Source = "Xbox\kinect\speech\nuisp2057"; Dest = "nuisp2057" },
@{ Source = "Xbox\kinect\speech\nuisp2058"; Dest = "nuisp2058" },
@{ Source = "Xbox\kinect\speech\nuisp3081"; Dest = "nuisp3081" },
@{ Source = "Xbox\kinect\speech\nuisp3082"; Dest = "nuisp3082" },
@{ Source = "Xbox\kinect\speech\nuisp3084"; Dest = "nuisp3084" },
@{ Source = "XboxMedia\AvatarAwards"; Dest = "AvatarAwards" },
@{ Source = "XboxMedia\XZP\TMSFiles.xzp"; Dest = "TMSFiles.xzp" },
@{ Source = "Common\Tutorial\Tutorial"; Dest = "Tutorial\Tutorial" }
)
foreach ($copy in $fileCopies) {
$src = Join-Path $ProjectDir $copy.Source
$dst = Join-Path $OutDir $copy.Dest
if (Test-Path $src) {
Copy-Item -Path $src -Destination $dst -Force
}
}