mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-29 15:19:44 +02:00
* Make the `repeat_hdiutil.sh` script more clear about retry counts. * Change usage of `$@` to `"$@"` to pass args correctly * Fix `CPACK_COMMAND_HDIUTIL` generation * Switch `package.sh` to use `$GITHUB_WORKSPACE` * Make `repeat_hdiutil.sh` executable * Remove `set +x` and `set -x` options Signed-off-by: Emily Mabrey <emabrey@tenacityaudio.org>
20 lines
673 B
Bash
Executable File
20 lines
673 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
((${BASH_VERSION%%.*} >= 4)) || { echo >&2 "$0: Error: Please upgrade Bash."; exit 1; }
|
|
|
|
set -euxo pipefail
|
|
|
|
cd build
|
|
|
|
if [[ "${OSTYPE}" == msys* && ${GIT_BRANCH} == release* ]]; then # Windows
|
|
cmake --build . --target innosetup --config "${AUDACITY_BUILD_TYPE}"
|
|
else
|
|
# GITHUB_WORKSPACE is set by the checkout action in the action workflow configuration
|
|
export CPACK_COMMAND_HDIUTIL="${GITHUB_WORKSPACE}/scripts/ci/macos/repeat_hdiutil.sh"
|
|
chmod +x $CPACK_COMMAND_HDIUTIL
|
|
cpack -C "${AUDACITY_BUILD_TYPE}" -D CPACK_COMMAND_HDIUTIL="${CPACK_COMMAND_HDIUTIL}" --verbose
|
|
fi
|
|
|
|
# Remove the temporary directory
|
|
rm -Rf package/_CPack_Packages
|