-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdistribute-windows.cmd
72 lines (61 loc) · 1.32 KB
/
distribute-windows.cmd
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@echo off
IF "%2"=="" (
echo Using existing tag
) ELSE (
echo tagging with %2
git tag %2
IF %ERRORLEVEL% NEQ 0 (
echo Failed creating Tag
echo %ERRORLEVEL%
GOTO FAIL
)
)
echo copying scipy hook modifier
copy "src\main\python\hook-scipy.py" "venv\Lib\site-packages\PyInstaller\hooks\hook-scipy.py"
IF %ERRORLEVEL% NEQ 0 (
echo "copy task failed"
echo %ERRORLEVEL%
GOTO FAIL
)
echo cleaning build directory
fbs clean
IF %ERRORLEVEL% NEQ 0 (
echo fbs failed
echo %ERRORLEVEL%
GOTO FAIL
)
echo freezing application
fbs freeze
IF %ERRORLEVEL% NEQ 0 (
echo fbs failed
echo %ERRORLEVEL%
GOTO FAIL
)
echo creating installer
fbs installer
IF %ERRORLEVEL% NEQ 0 (
echo fbs failed
echo %ERRORLEVEL%
GOTO FAIL
)
echo cleaning up old archives
del ".\target\UNote_windows.zip"
echo zipping application
zip ".\target\UNote_windows.zip" -r ".\target\UNote"
IF %ERRORLEVEL% NEQ 0 (
echo Failed Zipping application
echo %ERRORLEVEL%
GOTO FAIL
)
echo copying application to server
copy ".\target\UNoteSetup.exe" "X:\website-stroblme\server\unote\htdocs\archives\windows\UNoteSetup.exe"
IF %ERRORLEVEL% NEQ 0 (
echo Copying to server failed
echo %ERRORLEVEL%
GOTO FAIL
)
GOTO PASS
:FAIL
echo !!!!!!!! Building UNote Failed !!!!!!!!
:PASS
echo Pass