-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathmakeZIP.bat
36 lines (25 loc) · 882 Bytes
/
makeZIP.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
REM ## make the exe .. it assumes EE-UUQ_Windows_Download exists with vcredist and openssl there
cd build
conan install .. --build missing
qmake ..\R2D.pro
nmake
REM ## copy application into folder and winddeployqt it
copy .\R2D.exe .\R2D_Windows_Download
cd R2D_Windows_Download
windeployqt R2D.exe
REM ## copy examples.json from R2DExamples
rmdir /s /q .\Examples
mkdir .\Examples
copy ..\..\..\R2DExamples\Examples.json .\Examples
REM ## delete applications folder and copy new stuff
rmdir /s /q .\applications
mkdir .\applications
xcopy /s /e ..\..\..\SimCenterBackendApplications\applications .\applications
REM ## zip it up with 7zip
set sevenzip_path="C:\Program Files\7-Zip\7z.exe"
cd ..
if exist .\R2D_Windows_Download.zip (
del .\R2D_Windows_Download.zip
echo File deleted.
)
%sevenzip_path% a -tzip .\R2D_Windows_Download.zip .\R2D_Windows_Download