diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/SmallLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/SmallLogo.png new file mode 100644 index 00000000..00b54071 Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/SmallLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/SplashScreen.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/SplashScreen.png new file mode 100644 index 00000000..004d27bb Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/SplashScreen.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/StoreLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/StoreLogo.png new file mode 100644 index 00000000..679b33da Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/StoreLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/WideLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/WideLogo.png new file mode 100644 index 00000000..88bd1af5 Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/WideLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/SmallLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/SmallLogo.png new file mode 100644 index 00000000..00b54071 Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/SmallLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/SplashScreen.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/SplashScreen.png new file mode 100644 index 00000000..004d27bb Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/SplashScreen.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/StoreLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/StoreLogo.png new file mode 100644 index 00000000..679b33da Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/StoreLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/WideLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/WideLogo.png new file mode 100644 index 00000000..88bd1af5 Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/en-us/WideLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/SmallLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/SmallLogo.png new file mode 100644 index 00000000..596ff2bc Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/SmallLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/SplashScreen.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/SplashScreen.png new file mode 100644 index 00000000..ae24deed Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/SplashScreen.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/StoreLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/StoreLogo.png new file mode 100644 index 00000000..ed3844f4 Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/StoreLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/WideLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/WideLogo.png new file mode 100644 index 00000000..52a74860 Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-cn/WideLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/SmallLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/SmallLogo.png new file mode 100644 index 00000000..00b54071 Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/SmallLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/SplashScreen.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/SplashScreen.png new file mode 100644 index 00000000..004d27bb Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/SplashScreen.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/StoreLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/StoreLogo.png new file mode 100644 index 00000000..679b33da Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/StoreLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/WideLogo.png b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/WideLogo.png new file mode 100644 index 00000000..88bd1af5 Binary files /dev/null and b/Minecraft.Client/Common/Postbuilds/Contents/Durango/StoreImages/zh-sg/WideLogo.png differ diff --git a/Minecraft.Client/Common/Postbuilds/Durango-postbuild.ps1 b/Minecraft.Client/Common/Postbuilds/Durango-postbuild.ps1 index 284e2236..4dea6ce9 100644 --- a/Minecraft.Client/Common/Postbuilds/Durango-postbuild.ps1 +++ b/Minecraft.Client/Common/Postbuilds/Durango-postbuild.ps1 @@ -1 +1,93 @@ -// Currently a stub as we dont know what would go here \ No newline at end of file +param( + [string]$OutDir, + [string]$ProjectDir +) + +Write-Host "Durango Postbuild script started. Output Directory: $OutDir, Project Directory: $ProjectDir" + +$directories = @( + "Durango\StoreImages", + "Common\Media", + "Common\res", + "DLCImages", + "Tutorial", + "Durango", + "music", + "Sound", + "Xbox", + "DLC", + "CU", +) + +foreach ($dir in $directories) { + New-Item -ItemType Directory -Path (Join-Path $OutDir $dir) -Force | Out-Null +} + +$folderCopies = @( + @{ Source = "Common\Media"; Dest = "Common\Media" }, + @{ Source = "Common\res"; Dest = "Common\res" }, + @{ Source = "Durango\Sound"; Dest = "Sound" }, + @{ Source = "DurangoMedia\DLC"; Dest = "DLC" }, + @{ Source = "DurangoMedia\Tutorial"; Dest = "Tutorial" }, + @{ Source = "music"; Dest = "music" }, + @{ Source = "Durango\DLCImages"; Dest = "DLCImages" }, + @{ Source = "Durango\CU"; Dest = "CU" }, +) + +foreach ($copy in $folderCopies) { + $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 = "Durango\DurangoExtras\xcompress.dll"; Dest = "xcompress.dll" }, + @{ Source = "Durango\DLCXbox1.cmp"; Dest = "DLCXbox1.cmp" } +) + +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 + } +} + +$deleteDirs = @( + "Common\Media\Sound", + "Common\Media\Graphics", + "Common\Media\de-DE", + "Common\Media\es-ES", + "Common\Media\fr-FR", + "Common\Media\it-IT", + "Common\Media\ja-JP", + "Common\Media\ko-KR", + "Common\Media\pt-BR", + "Common\Media\pt-PT", + "Common\Media\zh-CHT" +) + +foreach ($dir in $deleteDirs) { + $path = Join-Path $OutDir $dir + if (Test-Path $path) { + Remove-Item $path -Recurse -Force -ErrorAction SilentlyContinue + } +} + +$delDirs = @( + "Common\Media", + "Common\Media\font" +) + +foreach ($dir in $delDirs) { + if ($delDirs -contains $dir) { + $path = Join-Path $OutDir $dir + if (Test-Path $path) { + Get-ChildItem -Path $path -Recurse -Include *.swf, *.txt, *.resx, *.xml, *.loc, *.lang, *.col, *.h, *.xui, *.abc, "Mojang Font_7.ttf", "Mojang Font_11.ttf", MediaWindows64.arc, MediaOrbis.arc, MediaPS3.arc, MediaPSVita.arc -File | + Remove-Item -Force -ErrorAction SilentlyContinue + } + } +} \ No newline at end of file