-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49969bb
commit dda46cb
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
# Retry logic for create-dmg command | ||
max_tries=10 | ||
i=0 | ||
until create-dmg \ | ||
--no-internet-enable \ | ||
--format ULFO \ | ||
--background ../packaging/macos/dmg-background.png \ | ||
--hide-extension 'Notes Better.app' \ | ||
--icon 'Notes Better.app' 180 170 \ | ||
--icon-size 160 \ | ||
--text-size 12 \ | ||
--volname Notes \ | ||
--volicon ../src/images/notes_icon.icns \ | ||
--window-size 660 400 \ | ||
--app-drop-link 480 170 \ | ||
"${{ steps.vars.outputs.file_name }}" \ | ||
'Notes Better.app' | ||
do | ||
if [ $i -eq $max_tries ] | ||
then | ||
echo 'Error: create-dmg did not succeed even after 10 tries.' | ||
exit 1 | ||
fi | ||
i=$((i+1)) | ||
done |