File: package.sh

package info (click to toggle)
audacity 3.2.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 106,704 kB
  • sloc: cpp: 277,038; ansic: 73,623; lisp: 7,761; python: 3,305; sh: 2,715; perl: 821; xml: 275; makefile: 119
file content (22 lines) | stat: -rwxr-xr-x 645 bytes parent folder | download
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