aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/postbuild.ps1
diff options
context:
space:
mode:
authorrtm516 <rtm516@users.noreply.github.com>2026-03-17 21:39:22 +0000
committerGitHub <noreply@github.com>2026-03-17 16:39:22 -0500
commit02a5961f39673be403fda3edbf6fb1265bd93477 (patch)
treeade5f3cfd70fcb6e0add6492f182cc571bec7f3a /Minecraft.Client/postbuild.ps1
parent1a3fcb5b2010fbbf5ef0ab52f7291a4129f05842 (diff)
Move project to CMake (#781)
* Move to cmake * Move sources to source_groups and ditch more old VS files * Add BuildVer.h generation * Break out cmake source lists to platforms * Don't copy swf files * Revert audio changes from merge * Add platform defines * Match MSBuild flags * Move BuildVer.h to common include and fix rebuild issue * Seperate projects properly * Exclude more files and make sure GameHDD exists * Missing line * Remove remaining VS project files * Update readme and actions * Use incremental LTCG * Update workflows * Update build workflows and output folder * Disable vcpkg checks * Force MSVC * Use precompiled headers * Only use PCH for cpp * Exclude compat_shims from PCH * Handle per-platform source includes * Copy only current platform media * Define Iggy libs per platform * Fix EnsureGameHDD check * Only set WIN32_EXECUTABLE on Windows * Correct Iggy libs path * Remove include of terrain_MipmapLevel * Correct path to xsb/xwb * Implement copilot suggestions * Add clang flags (untested) * Fix robocopy error checking * Update documentation * Drop CMakePresets.json version as we dont use v6 features * Always cleanup artifacts in nightly even if some builds fail * Re-work compiler target options * Move newer iggy dll into redist and cleanup * Fix typos * Remove 'Source Files' from all source groups * Remove old ps1 build scripts
Diffstat (limited to 'Minecraft.Client/postbuild.ps1')
-rw-r--r--Minecraft.Client/postbuild.ps143
1 files changed, 0 insertions, 43 deletions
diff --git a/Minecraft.Client/postbuild.ps1 b/Minecraft.Client/postbuild.ps1
deleted file mode 100644
index 8ffc9b98..00000000
--- a/Minecraft.Client/postbuild.ps1
+++ /dev/null
@@ -1,43 +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 = "Common\Media"; Dest = "Common\Media" },
- @{ Source = "Common\res"; Dest = "Common\res" },
- @{ Source = "Common\Trial"; Dest = "Common\Trial" },
- @{ Source = "Common\Tutorial"; Dest = "Common\Tutorial" },
- @{ Source = "Windows64\GameHDD"; Dest = "Windows64\GameHDD" },
- @{ Source = "Windows64\Sound"; Dest = "Windows64\Sound" },
- @{ Source = "Windows64Media"; Dest = "Windows64Media" }
-)
-
-foreach ($copy in $copies) {
- $src = Join-Path $ProjectDir $copy.Source
- $dst = Join-Path $OutDir $copy.Dest
-
- if (Test-Path $src) {
- # Copy the files using xcopy, forcing overwrite and suppressing errors, and only copying if the source is newer than the destination
- xcopy /q /y /i /s /e /d "$src" "$dst" 2>$null
- }
-}
-
-git restore "**/BuildVer.h" \ No newline at end of file