diff --git a/appveyor.yml b/appveyor.yml index 79769070..418de011 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -22,6 +22,7 @@ install: - npm install -g npm bower rimraf asar - choco install nsis -version 2.51 - choco install upx + - choco install 7zip.commandline - set PATH=C:\Program Files (x86)\Windows Kits\8.1\bin\x86;%PATH% - set PATH=C:\Program Files (x86)\NSIS;%PATH% - set PATH=C:\Ruby22\bin;%PATH% diff --git a/docs/RUNNING-LOCALLY.md b/docs/RUNNING-LOCALLY.md index 8fa5d30c..657c1005 100644 --- a/docs/RUNNING-LOCALLY.md +++ b/docs/RUNNING-LOCALLY.md @@ -21,6 +21,7 @@ Prerequisites - [Asar](https://github.com/electron/asar) - [NSIS v2.51](http://nsis.sourceforge.net/Main_Page) (v3.x won't work) - [Visual Studio Community 2013](https://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx) +- [7z](http://www.7-zip.org) (command line version) ### OS X diff --git a/scripts/build/windows.bat b/scripts/build/windows.bat index e59a7086..cb8f8310 100644 --- a/scripts/build/windows.bat +++ b/scripts/build/windows.bat @@ -102,13 +102,20 @@ if %ERRORLEVEL% neq 0 ( exit /b 1 ) -:: Check that asar is installed. +:: Check that python is installed. where python >nul 2>nul if %ERRORLEVEL% neq 0 ( echo Dependency missing: python 1>&2 exit /b 1 ) +:: Check that 7z is installed. +where 7z >nul 2>nul +if %ERRORLEVEL% neq 0 ( + echo Dependency missing: 7z 1>&2 + exit /b 1 +) + ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Global variables ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: @@ -226,6 +233,10 @@ signtool verify /pa /v %package_output%\Etcher.exe upx -9 %package_output%\*.dll +cd %package_output%^ + && 7z a -tzip ..\installers\%package_name%.zip *^ + && cd ..\.. + ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Generate installer :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::