-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPreparePackage.bat
19 lines (14 loc) · 948 Bytes
/
PreparePackage.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
rem This script will make a copy of release compilation and create 7z archive
rem After running this script compile installer through from NSIS_Installer.nsi script
rem in result you will get "portable" .7z archive and installer in Release directory
SET SourcePath=%~dp0Win64\Release\
SET DestinationCompilePath=%~dp0Publish\Files\
SET DestinationPath=%~dp0Publish\
del "%DestinationCompilePath%*.*" /q /f
del "%DestinationPath%*.*" /q /f
xcopy "%SourcePath%*.dll" "%DestinationCompilePath%" /y
xcopy "%SourcePath%*.exe" "%DestinationCompilePath%" /y
xcopy "%~dp0*.md" "%DestinationCompilePath%" /y
xcopy "%~dp0LICENSE" "%DestinationCompilePath%" /y
xcopy "%~dp0*example*" "%DestinationCompilePath%" /y
7z.exe a -mx9 "%DestinationPath%Multi_Keyboard_For_AutoHotkey_Portable.7z" "%DestinationCompilePath%*.exe" "%DestinationCompilePath%*.dll" "%DestinationCompilePath%*.md" "%DestinationCompilePath%LICENSE" "%DestinationCompilePath%*example*"