From dea1d620744b6d6eb8441f91e905facbee277156 Mon Sep 17 00:00:00 2001 From: void_17 <61356189+void2012@users.noreply.github.com> Date: Mon, 2 Mar 2026 14:13:12 +0700 Subject: Revert "Move to a postbuild.ps1 script and Set the working dir at runtime as …" (#111) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 8810566bf6ec4b26e35103b7ae56317db7b0cfcc. --- Minecraft.Client/postbuild.ps1 | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 Minecraft.Client/postbuild.ps1 (limited to 'Minecraft.Client/postbuild.ps1') diff --git a/Minecraft.Client/postbuild.ps1 b/Minecraft.Client/postbuild.ps1 deleted file mode 100644 index aca98cd2..00000000 --- a/Minecraft.Client/postbuild.ps1 +++ /dev/null @@ -1,41 +0,0 @@ -param( - [string]$OutDir, - [string]$ProjectDir -) - -Write-Host "Post-build script started. Output Directory: $OutDir, Project Directory: $ProjectDir" - -$directories = @( - "music", - "Windows64\GameHDD", - "Common\Media", - "Common\res", - "Common\Trial", - "Common\Tutorial", - "Windows64Media" -) - -foreach ($dir in $directories) { - New-Item -ItemType Directory -Path (Join-Path $OutDir $dir) -Force | Out-Null -} - -$copies = @( - @{ Source = "music"; Dest = "music" }, - @{ Source = "Windows64\GameHDD"; Dest = "Windows64\GameHDD" }, - @{ Source = "Common\Media"; Dest = "Common\Media" }, - @{ Source = "Common\res"; Dest = "Common\res" }, - @{ Source = "Common\Trial"; Dest = "Common\Trial" }, - @{ Source = "Common\Tutorial"; Dest = "Common\Tutorial" }, - @{ Source = "DurangoMedia"; Dest = "Windows64Media" }, - @{ Source = "Windows64Media"; Dest = "Windows64Media" }, - @{ Source = "Durango\Sound"; Dest = "Windows64Media\Sound" } -) - -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 "$src" "$dst" 2>$null - } -} -- cgit v1.2.3