Skip to content

Commit e492ae5

Browse files
author
Lennolium
committed
Release v0.0.2
1 parent 441f3b4 commit e492ae5

File tree

4 files changed

+9
-16
lines changed

4 files changed

+9
-16
lines changed

build-dmg.sh

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,8 @@ _logo " ------------------------------------------------------------------------
2020
echo ""
2121
echo ""
2222

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."
3225

3326
# Check if homebrew is installed and install it if not.
3427
_info "Checking if homebrew is installed ..."
@@ -91,7 +84,9 @@ if create-dmg \
9184
then
9285
_ok "create-dmg successfully created .dmg file without errors."
9386
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
9590
exit 1
9691
fi
9792

@@ -108,8 +103,6 @@ _info "Validate sha256 checksum ..."
108103
sha256sum -c SHA256SUM
109104

110105
# 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!"

dmg/SHA256SUM

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0c52d08e5bb899bef4325bb9d47127d41b57f58e0d80c1f2fbb2adc78e449978 swiftGuard.dmg

dmg/checksum.sha256

Lines changed: 0 additions & 1 deletion
This file was deleted.

dmg/swiftGuard.dmg

-17.8 MB
Binary file not shown.

0 commit comments

Comments
 (0)