forked from muchimi/JoystickGremlinEx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.bat
36 lines (29 loc) · 768 Bytes
/
deploy.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
@echo off
@echo "Starting to build Gremlin ..."
cd /d %0\..
set version=%1
if exist dist (
cd dist
if exist joystick_gremlin\ (
del joystick_gremlin\ /q
) else (
md joystick_gremlin
)
cd ..
)
@echo "Building executable ..."
python -m PyInstaller -y --clean joystick_gremlin.spec
cd dist
if exist joystick_gremlin.zip del joystick_gremlin.zip
cd joystick_gremlin
@echo "Create a Zip ..."
"C:\Program Files\7-Zip\7z" a -r ../joystick_gremlin.zip *
cd ..
@echo "Package into an installer..."
if "%version%" == "" (
echo ERROR - Version must be provided to create installer
) else (
python ../generate_wix.py --folder joystick_gremlin --version %version%
wix build -src joystick_gremlin.wxs -ext WixToolset.UI.wixext
)
cd ..