-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdistribute-linux.sh
57 lines (49 loc) · 1022 Bytes
/
distribute-linux.sh
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
IF "$2"=="" (
echo Using existing tag
) ELSE (
echo tagging with $2
git tag $2
IF $? != 0 (
echo Failed creating Tag
echo $?$
)
)
echo copying scipy hook modifier
copy "src\main\python\hook-scipy.py" "venv\Lib\site-packages\PyInstaller\hooks\hook-scipy.py"
IF $? != 0 (
echo "copy task failed"
echo $?
)
echo cleaning build directory
fbs clean
IF $? != 0 (
echo fbs failed
echo $?
)
echo freezing application
fbs freeze
IF $? != 0 (
echo fbs failed
echo $?
)
echo creating installer
fbs installer
IF $? != 0 (
echo fbs failed
echo $?
)
echo cleaning up old archives
del ".\target\UNote_linux.zip"
echo zipping application
zip ".\target\UNote_linux.zip" -r ".\target\UNote"
IF $? != 0 (
echo Failed Zipping application
echo $?
)
echo copying application to server
copy ".\target\UNoteSetup.exe" "X:\website-stroblme\server\unote\htdocs\archives\linux\UNoteSetup.exe"
IF $? != 0 (
echo Copying to server failed
echo $?
)
echo Passed