Skip to content

Commit c75dff6

Browse files
author
Melvin Strobl
committed
distribution scripts
1 parent 1a037db commit c75dff6

File tree

4 files changed

+130
-1
lines changed

4 files changed

+130
-1
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
src/build/settings/secret.json
22
src/main/python/examples
3-
distribute.cmd
3+
44
*.log
55
*.pfx
66

distribute-linux.sh

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
IF "$2"=="" (
2+
echo Using existing tag
3+
) ELSE (
4+
echo tagging with $2
5+
git tag $2
6+
IF $? != 0 (
7+
echo Failed creating Tag
8+
echo $?$
9+
)
10+
)
11+
12+
echo copying scipy hook modifier
13+
copy "src\main\python\hook-scipy.py" "venv\Lib\site-packages\PyInstaller\hooks\hook-scipy.py"
14+
IF $? != 0 (
15+
echo "copy task failed"
16+
echo $?
17+
)
18+
19+
echo cleaning build directory
20+
fbs clean
21+
IF $? != 0 (
22+
echo fbs failed
23+
echo $?
24+
)
25+
26+
echo freezing application
27+
fbs freeze
28+
IF $? != 0 (
29+
echo fbs failed
30+
echo $?
31+
)
32+
33+
echo creating installer
34+
fbs installer
35+
IF $? != 0 (
36+
echo fbs failed
37+
echo $?
38+
)
39+
40+
echo cleaning up old archives
41+
del ".\target\UNote_linux.zip"
42+
43+
echo zipping application
44+
zip ".\target\UNote_linux.zip" -r ".\target\UNote"
45+
IF $? != 0 (
46+
echo Failed Zipping application
47+
echo $?
48+
)
49+
50+
echo copying application to server
51+
copy ".\target\UNoteSetup.exe" "X:\website-stroblme\server\unote\htdocs\archives\linux\UNoteSetup.exe"
52+
IF $? != 0 (
53+
echo Copying to server failed
54+
echo $?
55+
)
56+
57+
echo Passed

distribute-windows.cmd

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
@echo off
2+
3+
IF "%2"=="" (
4+
echo Using existing tag
5+
) ELSE (
6+
echo tagging with %2
7+
git tag %2
8+
IF %ERRORLEVEL% NEQ 0 (
9+
echo Failed creating Tag
10+
echo %ERRORLEVEL%
11+
GOTO FAIL
12+
)
13+
)
14+
15+
echo copying scipy hook modifier
16+
copy "src\main\python\hook-scipy.py" "venv\Lib\site-packages\PyInstaller\hooks\hook-scipy.py"
17+
IF %ERRORLEVEL% NEQ 0 (
18+
echo "copy task failed"
19+
echo %ERRORLEVEL%
20+
GOTO FAIL
21+
)
22+
23+
echo cleaning build directory
24+
fbs clean
25+
IF %ERRORLEVEL% NEQ 0 (
26+
echo fbs failed
27+
echo %ERRORLEVEL%
28+
GOTO FAIL
29+
)
30+
31+
echo freezing application
32+
fbs freeze
33+
IF %ERRORLEVEL% NEQ 0 (
34+
echo fbs failed
35+
echo %ERRORLEVEL%
36+
GOTO FAIL
37+
)
38+
39+
echo creating installer
40+
fbs installer
41+
IF %ERRORLEVEL% NEQ 0 (
42+
echo fbs failed
43+
echo %ERRORLEVEL%
44+
GOTO FAIL
45+
)
46+
47+
echo cleaning up old archives
48+
del ".\target\UNote_windows.zip"
49+
50+
echo zipping application
51+
zip ".\target\UNote_windows.zip" -r ".\target\UNote"
52+
IF %ERRORLEVEL% NEQ 0 (
53+
echo Failed Zipping application
54+
echo %ERRORLEVEL%
55+
GOTO FAIL
56+
)
57+
58+
echo copying application to server
59+
copy ".\target\UNoteSetup.exe" "X:\website-stroblme\server\unote\htdocs\archives\windows\UNoteSetup.exe"
60+
IF %ERRORLEVEL% NEQ 0 (
61+
echo Copying to server failed
62+
echo %ERRORLEVEL%
63+
GOTO FAIL
64+
)
65+
66+
GOTO PASS
67+
68+
:FAIL
69+
echo !!!!!!!! Building UNote Failed !!!!!!!!
70+
71+
:PASS
72+
echo Pass

distribute.py

Whitespace-only changes.

0 commit comments

Comments
 (0)