-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCreatePackages.bat
41 lines (21 loc) · 1.44 KB
/
CreatePackages.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@Echo Off
Set DestinationDirectory=%TEMP%\Acrylic-Latest
Echo CREATING DESTINATION DIRECTORY...
RmDir /s /q "%DestinationDirectory%" >NUL 2>NUL & MkDir "%DestinationDirectory%" >NUL 2>NUL
Echo BUILDING ACRYLIC PORTABLE PACKAGE...
7za.exe a -tzip -mx9 "%DestinationDirectory%\Acrylic-Portable.zip" AcrylicConfiguration.ini AcrylicHosts.txt AcrylicService.exe AcrylicConsole.exe AcrylicUI.exe.manifest AcrylicUI.exe License.txt ReadMe.txt InstallAcrylicService.bat StartAcrylicService.bat StopAcrylicService.bat RestartAcrylicService.bat PurgeAcrylicCacheData.bat ActivateAcrylicDebugLog.bat DeactivateAcrylicDebugLog.bat OpenAcrylicConfigurationFile.bat OpenAcrylicHostsFile.bat UninstallAcrylicService.bat
If %ErrorLevel% Neq 0 Echo FAILED! & Pause & Exit /b 0
Echo BUILDING ACRYLIC SETUP PACKAGE...
"C:\Wintools\NSIS-2.46.5\App\NSIS\makensis.exe" AcrylicSetup.nsi
If %ErrorLevel% Neq 0 Echo FAILED! & Pause & Exit /b 0
Echo MOVING ACRYLIC SETUP PACKAGE TO "%DestinationDirectory%"...
Move /y Acrylic.exe "%DestinationDirectory%"
If %ErrorLevel% Neq 0 Echo FAILED! & Pause & Exit /b 0
Echo CLEANING...
Call CleanSources.bat
Echo BUILDING ACRYLIC SOURCE ARCHIVE...
7za.exe a -tzip -mx9 "%DestinationDirectory%\Acrylic-Sources.zip" -xr!.git -x!.gitignore *
If %ErrorLevel% Neq 0 Echo FAILED! & Pause & Exit /b 0
Echo PRINTING SHA256 FILE HASHES...
CsRun GetFiles "/DirectoryPath=%DestinationDirectory%" | CsRun ForEachFileGetHash SHA256
Echo DONE SUCCESSFULLY.