mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
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.
This commit is contained in:
@@ -25,7 +25,23 @@ copy ..\..\Setup\Setup.ico .
|
|||||||
del *.xml
|
del *.xml
|
||||||
rmdir /S /Q Languages
|
rmdir /S /Q Languages
|
||||||
mkdir 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
|
del Languages.zip
|
||||||
7z a -y Languages.zip Languages
|
7z a -y Languages.zip Languages
|
||||||
rmdir /S /Q docs
|
rmdir /S /Q docs
|
||||||
|
|||||||
Reference in New Issue
Block a user