Skip to content

Commit

Permalink
Windows deploy scripts updated
Browse files Browse the repository at this point in the history
  • Loading branch information
lellisls committed Jul 22, 2018
1 parent fe33024 commit f2a45c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
17 changes: 13 additions & 4 deletions installer/Windows/deploy.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
SET PATH=%PATH%;C:\Qt\Tools\mingw530_32\bin;C:\Qt\5.8\mingw53_32\bin;C:\Program Files\7-Zip;C:\Program Files (x86)\NSIS\
del WiredPanda_*

if not exist Build mkdir Build
cd Build
qmake.exe ..\..\..\app\
mingw32-make.exe -j4
cd ..
"windeployqt.exe" "Build\release\wpanda.exe"
"makensis.exe" wpanda.nsi
7z.exe x wpanda_32.exe -o"%cd%\wpanda_32"
7z.exe a -tzip wpanda_portable.zip "%cd%\wpanda_32"

windeployqt.exe "Build\release\wpanda.exe"
makensis.exe "wpanda.nsi"
7z.exe x WiredPanda_*.exe -o"%cd%\wpanda_32"

FOR /F "tokens=*" %%i IN ( 'DIR /b /a-d WiredPanda_*.exe') DO (SET EXEFILE=%%i)
ECHO %EXEFILE%
set OUTFILE=%EXEFILE:Windows_Installer_x86_64.exe=Windows_Portable_x86_64.zip%

7z.exe a -tzip %OUTFILE% "%cd%\wpanda_32"
RMDIR /S /Q "%cd%\wpanda_32"

pause
5 changes: 2 additions & 3 deletions installer/Windows/wpanda.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# These three must be integers
!define VERSIONMAJOR 2
!define VERSIONMINOR 6
!define VERSIONBUILD 0000
!define VERSIONBUILD 0
!define MUI_VERSION "${VERSIONMAJOR}.{VERSIONMINOR}"
!define MUI_BRANDINGTEXT "${MUI_PRODUCT} ${MUI_VERSION}"
!define COMPANYNAME "UNIFESP"
Expand All @@ -43,8 +43,7 @@

;Request application privileges for Windows Vista
RequestExecutionLevel admin

OutFile "wpanda_32.exe"
OutFile "WiredPanda_${VERSIONMAJOR}_${VERSIONMINOR}_${VERSIONBUILD}_Windows_Installer_x86_64.exe"
ShowInstDetails "nevershow"
ShowUninstDetails "nevershow"
;SetCompressor "bzip2"
Expand Down

0 comments on commit f2a45c4

Please sign in to comment.