File: deploy.bat

package info (click to toggle)
wiredpanda 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,560 kB
  • sloc: cpp: 16,024; sh: 232; ansic: 52; xml: 8; makefile: 5; javascript: 1
file content (21 lines) | stat: -rw-r--r-- 641 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
cmake -S ../../.. -B . -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
cd ..

windeployqt.exe "Build\Release\wiredpanda.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