From e4e2f47f8e9d92c833e77ddcdfe456ff353c86d9 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 18 Nov 2024 01:28:36 +0400 Subject: [PATCH] Adjust build script for Windows Store ARM version. --- Telegram/build/build.bat | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Telegram/build/build.bat b/Telegram/build/build.bat index 6dc539c61..a8062abd1 100644 --- a/Telegram/build/build.bat +++ b/Telegram/build/build.bat @@ -279,7 +279,9 @@ echo Done! if %BuildUWP% neq 0 ( cd "%HomePath%" - mkdir "%ReleasePath%\AppX\modules\%Platform%\d3d" + if %BuildARM% equ 0 ( + mkdir "%ReleasePath%\AppX\modules\%Platform%\d3d" + ) xcopy "Resources\uwp\AppX\*" "%ReleasePath%\AppX\" /E set "ResourcePath=%ReleasePath%\AppX\AppxManifest.xml" call :repl "Argument= (ProcessorArchitecture=)"ARCHITECTURE"/ $1"%Platform%"" "Filename=!ResourcePath!" || goto error @@ -288,7 +290,9 @@ if %BuildUWP% neq 0 ( xcopy "%ReleasePath%\%BinaryName%.exe" "%ReleasePath%\AppX\" xcopy "%ReleasePath%\StartupTask.exe" "%ReleasePath%\AppX\" - xcopy "%ReleasePath%\modules\%Platform%\d3d\d3dcompiler_47.dll" "%ReleasePath%\AppX\modules\%Platform%\d3d\" + if %BuildARM% equ 0 ( + xcopy "%ReleasePath%\modules\%Platform%\d3d\d3dcompiler_47.dll" "%ReleasePath%\AppX\modules\%Platform%\d3d\" + ) MakeAppx.exe pack /d "%ReleasePath%\AppX" /l /p ..\out\Release\%BinaryName%.%Platform%.appx if %errorlevel% neq 0 goto error