diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-08-21 07:32:04 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-08-21 07:32:04 +0200 |
commit | 0f94015041927cc373e4e83f25042c559344f4b8 (patch) | |
tree | adf2fc0554048fd5757bf069a2e5e4cff0b4693b /src/Signing | |
parent | 43df2de56d166e9617c8a8cef9bfe75aca959d8d (diff) | |
download | VeraCrypt-0f94015041927cc373e4e83f25042c559344f4b8.tar.gz VeraCrypt-0f94015041927cc373e4e83f25042c559344f4b8.zip |
Windows: Enhance packaging batch file to bundle only valid XML language files
This prevents the inadvertent inclusion of XML file artifacts (e.g., Language.fr - Copy.xml) during the creation of installers.
Diffstat (limited to 'src/Signing')
-rw-r--r-- | src/Signing/sign.bat | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/Signing/sign.bat b/src/Signing/sign.bat index d07683d1..5b61e6ea 100644 --- a/src/Signing/sign.bat +++ b/src/Signing/sign.bat @@ -25,7 +25,23 @@ copy ..\..\Setup\Setup.ico . del *.xml rmdir /S /Q Languages mkdir Languages -copy /V /Y ..\..\..\Translations\*.xml Languages\. + +@echo off +setlocal + +rem Define the source and target directories +set "SOURCE_DIR=..\..\..\Translations" +set "TARGET_DIR=Languages" + +rem Copy files matching Language.xx.xml where xx is any two characters +copy /V /Y "%SOURCE_DIR%\Language.??.xml" "%TARGET_DIR%\." + +rem Copy files matching Language.xx-yy.xml where xx and yy are any two characters +copy /V /Y "%SOURCE_DIR%\Language.??-??.xml" "%TARGET_DIR%\." + +endlocal +@echo on + del Languages.zip 7z a -y Languages.zip Languages rmdir /S /Q docs |