File tree Expand file tree Collapse file tree 4 files changed +9
-16
lines changed Expand file tree Collapse file tree 4 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,8 @@ _logo " ------------------------------------------------------------------------
20
20
echo " "
21
21
echo " "
22
22
23
- # Ask if the script should start with building the dmg.
24
- _info " This script will build a dmg file for swiftGuard. Make sure you have built a swiftGuard.app and it is in the /dist folder.\nContinue? (y/n)"
25
- read -r response
26
- if [ " $response " = " y" ]; then
27
- _ok " Let us begin!"
28
- else
29
- _error " Script aborted."
30
- exit ;
31
- fi
23
+ # Start.
24
+ _info " This script will build a dmg file for swiftGuard."
32
25
33
26
# Check if homebrew is installed and install it if not.
34
27
_info " Checking if homebrew is installed ..."
@@ -91,7 +84,9 @@ if create-dmg \
91
84
then
92
85
_ok " create-dmg successfully created .dmg file without errors."
93
86
else
94
- _error " create-dmg exited with errors. No .dmg created."
87
+ _error " DMG BUILD FAILED!"
88
+ rm -R dist/dmg-temp/*
89
+ rm -r dist/dmg-temp
95
90
exit 1
96
91
fi
97
92
@@ -108,8 +103,6 @@ _info "Validate sha256 checksum ..."
108
103
sha256sum -c SHA256SUM
109
104
110
105
# Finished: Open finder with the dmg folder.
111
- _ok " swiftGuard.dmg and checksum.sha256 created in /dmg folder"
112
- _ok " SCRIPT FINISHED! \nPress any key to open /dmg folder and exit..."
113
- read -r exit
114
- open .
115
- exit
106
+ _ok " create-dmg successfully build dmg file."
107
+ _ok " Find swiftGuard.dmg in /dmg folder."
108
+ _ok " SCRIPT FINISHED!"
Original file line number Diff line number Diff line change
1
+ 0c52d08e5bb899bef4325bb9d47127d41b57f58e0d80c1f2fbb2adc78e449978 swiftGuard.dmg
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments