mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
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:
parent
72b3348fb1
commit
f6a9980e49
3
.github/workflows/build-pkg.yml
vendored
3
.github/workflows/build-pkg.yml
vendored
@ -4,9 +4,6 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- .github/workflows/build-pkg.yml
|
- .github/workflows/build-pkg.yml
|
||||||
- package/scripts
|
- package/scripts
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
# verify the files exist
|
# verify the files exist
|
||||||
tmp_brew="$2"
|
tmp_brew="$2"
|
||||||
@ -8,9 +9,7 @@ if [[ ! -d "${tmp_brew:?}" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# pick the correct target
|
# pick the correct target
|
||||||
if [[ "$3" != "/" ]]; then
|
if [[ $(uname -m) == "x86_64" ]];then
|
||||||
target=$3
|
|
||||||
elif [[ $(uname -m) == "x86_64" ]];then
|
|
||||||
target="/usr/local"
|
target="/usr/local"
|
||||||
else
|
else
|
||||||
target="/opt/Homebrew"
|
target="/opt/Homebrew"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user