aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client
diff options
context:
space:
mode:
authorvoid_17 <61356189+void2012@users.noreply.github.com>2026-03-02 14:13:12 +0700
committerGitHub <noreply@github.com>2026-03-02 14:13:12 +0700
commitdea1d620744b6d6eb8441f91e905facbee277156 (patch)
tree7ddb006c6f34b339999cf54e134bbdf664b45948 /Minecraft.Client
parent8810566bf6ec4b26e35103b7ae56317db7b0cfcc (diff)
Revert "Move to a postbuild.ps1 script and Set the working dir at runtime as …" (#111)
This reverts commit 8810566bf6ec4b26e35103b7ae56317db7b0cfcc.
Diffstat (limited to 'Minecraft.Client')
-rw-r--r--Minecraft.Client/Minecraft.Client.vcxproj31
-rw-r--r--Minecraft.Client/Minecraft.Client.vcxproj.user8
-rw-r--r--Minecraft.Client/postbuild.ps141
3 files changed, 27 insertions, 53 deletions
diff --git a/Minecraft.Client/Minecraft.Client.vcxproj b/Minecraft.Client/Minecraft.Client.vcxproj
index 4e8d46be..5e448ab6 100644
--- a/Minecraft.Client/Minecraft.Client.vcxproj
+++ b/Minecraft.Client/Minecraft.Client.vcxproj
@@ -1302,8 +1302,14 @@ if not exist "$(TargetDir)\savedata" mkdir "$(TargetDir)\savedata"</Command>
<ForceFileOutput>MultiplyDefinedSymbolOnly</ForceFileOutput>
</Link>
<PostBuildEvent>
- <Message>Run postbuild script</Message>
- <Command>powershell -ExecutionPolicy Bypass -File "$(ProjectDir)postbuild.ps1" -OutDir "$(OutDir)/" -ProjectDir "$(ProjectDir)/"</Command>
+ <Message>Copying sound assets to output directory</Message>
+ <Command>xcopy /q /y /i /s /e "$(ProjectDir)Durango\Sound" "$(OutDir)Durango\Sound"
+xcopy /q /y /i /s /e "$(ProjectDir)music" "$(OutDir)music"
+xcopy /q /y /i /s /e "$(ProjectDir)Windows64\GameHDD" "$(OutDir)Windows64\GameHDD"
+xcopy /q /y /i /s /e "$(ProjectDir)Common\Media" "$(OutDir)Common\Media"
+xcopy /q /y /i /s /e "$(ProjectDir)Common\res" "$(OutDir)Common\res"
+xcopy /q /y /i /s /e "$(ProjectDir)Common\Trial" "$(OutDir)Common\Trial"
+xcopy /q /y /i /s /e "$(ProjectDir)Common\Tutorial" "$(OutDir)Common\Tutorial"</Command>
</PostBuildEvent>
<ImageXex>
<ConfigurationFile>$(ProjectDir)xbox\xex-dev.xml</ConfigurationFile>
@@ -1434,8 +1440,25 @@ xcopy /q /y /i /s /e $(ProjectDir)Durango\CU $(LayoutDir)Image\Loose\CU</Comman
<SuppressStartupBanner>false</SuppressStartupBanner>
</Link>
<PostBuildEvent>
- <Message>Run postbuild script</Message>
- <Command>powershell -ExecutionPolicy Bypass -File "$(ProjectDir)postbuild.ps1" -OutDir "$(OutDir)/" -ProjectDir "$(ProjectDir)/"</Command>
+ <Message>Copying game assets to output directory</Message>
+ <Command>mkdir "$(OutDir)music" 2&gt;nul
+mkdir "$(OutDir)Windows64\GameHDD" 2&gt;nul
+mkdir "$(OutDir)Common\Media" 2&gt;nul
+mkdir "$(OutDir)Common\res" 2&gt;nul
+mkdir "$(OutDir)Common\Trial" 2&gt;nul
+mkdir "$(OutDir)Common\Tutorial" 2&gt;nul
+mkdir "$(OutDir)Windows64Media" 2&gt;nul
+
+xcopy /q /y /i /s /e "$(ProjectDir)music" "$(OutDir)music" || exit /b 0
+xcopy /q /y /i /s /e "$(ProjectDir)Windows64\GameHDD" "$(OutDir)Windows64\GameHDD" || exit /b 0
+xcopy /q /y /i /s /e "$(ProjectDir)Common\Media" "$(OutDir)Common\Media" || exit /b 0
+xcopy /q /y /i /s /e "$(ProjectDir)Common\res" "$(OutDir)Common\res" || exit /b 0
+xcopy /q /y /i /s /e "$(ProjectDir)Common\Trial" "$(OutDir)Common\Trial" || exit /b 0
+xcopy /q /y /i /s /e "$(ProjectDir)Common\Tutorial" "$(OutDir)Common\Tutorial" || exit /b 0
+xcopy /q /y /i /s /e "$(ProjectDir)DurangoMedia" "$(OutDir)Windows64Media" || exit /b 0
+xcopy /q /y /i /s /e "$(ProjectDir)Windows64Media" "$(OutDir)Windows64Media" || exit /b 0
+
+exit /b 0</Command>
</PostBuildEvent>
<ImageXex>
<ConfigurationFile>$(ProjectDir)xbox\xex-dev.xml</ConfigurationFile>
diff --git a/Minecraft.Client/Minecraft.Client.vcxproj.user b/Minecraft.Client/Minecraft.Client.vcxproj.user
index 10dbfa33..cf9782cd 100644
--- a/Minecraft.Client/Minecraft.Client.vcxproj.user
+++ b/Minecraft.Client/Minecraft.Client.vcxproj.user
@@ -3,12 +3,4 @@
<PropertyGroup>
<LastConfigDeployed>Debug</LastConfigDeployed>
</PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LocalDebuggerWorkingDirectory>$(SolutionDir)$(Platform)\$(Configuration)\</LocalDebuggerWorkingDirectory>
- <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LocalDebuggerWorkingDirectory>$(SolutionDir)$(Platform)\$(Configuration)\</LocalDebuggerWorkingDirectory>
- <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
- </PropertyGroup>
</Project> \ No newline at end of file
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
- }
-}