1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/env bash
((${BASH_VERSION%%.*} >= 4)) || { echo >&2 "$0: Error: Please upgrade Bash."; exit 1; }
set -euxo pipefail
cd build
if [[ "${OSTYPE}" == msys* ]]; then # Windows
if [[ ${GIT_BRANCH} == release* ]]; then
cmake --build . --target innosetup --config "${AUDACITY_BUILD_TYPE}"
fi
# Chocolatey went wild again (6 years passed!) and added cpack.exe alias to choco pack
# This breaks the GitHub actions
cmake --build . --target package --config "${AUDACITY_BUILD_TYPE}"
else # Linux & others
cpack -C "${AUDACITY_BUILD_TYPE}" --verbose
fi
# Remove the temporary directory
rm -Rf package/_CPack_Packages
|