fix: cleanup macOS packaging

Don't allow specifying target
Add `set -e` to shell scripts
Don't try and package on every PR

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Sean Molenaar 2022-12-21 13:18:09 +01:00 committed by GitHub
parent 72b3348fb1
commit f6a9980e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -4,9 +4,6 @@ on:
paths:
- .github/workflows/build-pkg.yml
- package/scripts
pull_request:
branches:
- master
release:
types:
- published

View File

@ -1,4 +1,5 @@
#!/bin/bash
set -e
# verify the files exist
tmp_brew="$2"
@ -8,9 +9,7 @@ if [[ ! -d "${tmp_brew:?}" ]]; then
fi
# pick the correct target
if [[ "$3" != "/" ]]; then
target=$3
elif [[ $(uname -m) == "x86_64" ]];then
if [[ $(uname -m) == "x86_64" ]];then
target="/usr/local"
else
target="/opt/Homebrew"