1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 09:01:15 +02:00

Attempt to fix macOS build issues

Add `umount` command behavior
Modify to retry 12 times over the course of 240 seconds total
Change `scripts\build\macOS\DMGSetup.scpt` to close DMG when finished.
Improve system detection for setting project name.

Signed-off-by: Emily Mabrey <emabrey@tenacityaudio.org>
This commit is contained in:
Emily Mabrey
2021-08-28 09:21:00 -04:00
parent c3db577e93
commit 7450432f9a
4 changed files with 17 additions and 12 deletions

View File

@@ -4,11 +4,11 @@
set -uo pipefail
max_retry=10
max_retry=12
counter=0
num_secs_await_retry=5
num_secs_await_retry=20
echo "Trying: " /usr/bin/hdiutil "$@"
echo "Trying: /usr/bin/hdiutil $@"
until /usr/bin/hdiutil "$@"; do
sleep $num_secs_await_retry
@@ -16,7 +16,11 @@ until /usr/bin/hdiutil "$@"; do
echo "CPack failed despite retry attempts!"
exit 1
else
echo "Trying CPack hdiutil call again. Retry attempt #$counter"
echo "Attempting to umount before retry..."
modified_args=("$@")
modified_args[0]="umount"
/usr/bin/hdiutil "${modified_args[@]}"
echo "Trying hdiutil call again. Retry attempt #$counter"
((counter++))
fi
done