File tree 4 files changed +130
-1
lines changed
4 files changed +130
-1
lines changed Original file line number Diff line number Diff line change 1
1
src /build /settings /secret.json
2
2
src /main /python /examples
3
- distribute.cmd
3
+
4
4
* .log
5
5
* .pfx
6
6
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments