mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
🔨 Invoke bottle script from brew_tap_update
This commit is contained in:
parent
20ba23e247
commit
37cf3116b1
2 changed files with 16 additions and 4 deletions
|
@ -14,8 +14,8 @@
|
|||
# Variables
|
||||
#
|
||||
|
||||
BUILD_DIR="$PWD/.build"
|
||||
BOTTLE_DIR="$BUILD_DIR/bottles"
|
||||
BUILD_DIR="${PWD}/.build"
|
||||
BOTTLE_DIR="${BUILD_DIR}/bottles"
|
||||
CORE_TAP_PATH="$(brew --repository homebrew/core)"
|
||||
MAS_VERSION=$(script/version)
|
||||
ROOT_URL="https://github.com/mas-cli/mas/releases/download/v${MAS_VERSION}"
|
||||
|
@ -37,7 +37,7 @@ OS_NAMES=(
|
|||
el_capitan
|
||||
)
|
||||
|
||||
# Semantic version number split into a list using Ugly, bash 3 compatible syntax
|
||||
# Semantic version number split into a list using ugly, bash 3 compatible syntax
|
||||
IFS=" " read -r -a CURRENT_OS_VERSION <<<"$(sw_vers -productVersion | sed 's/\./ /g')"
|
||||
CURRENT_OS_VERSION_MAJOR=${CURRENT_OS_VERSION[0]}
|
||||
CURRENT_OS_VERSION_MINOR=${CURRENT_OS_VERSION[1]}
|
||||
|
|
|
@ -79,7 +79,7 @@ $echo git switch "${branch_name}"
|
|||
|
||||
################################################################################
|
||||
#
|
||||
# Create pr on mas-cli/homebrew-tap
|
||||
# Create branch on mas-cli/homebrew-tap
|
||||
#
|
||||
|
||||
# Ensure mas is tapped
|
||||
|
@ -101,6 +101,18 @@ $echo git add \
|
|||
|
||||
$echo git commit --message="🔖 Version ${MAS_VERSION}"
|
||||
|
||||
popd
|
||||
|
||||
# Build in mas project
|
||||
script/bottle
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# Create PR on mas-cli/homebrew-tap
|
||||
#
|
||||
|
||||
pushd "${MAS_TAP_PATH}"
|
||||
|
||||
$echo gh pr create \
|
||||
--assignee phatblat \
|
||||
--base main \
|
||||
|
|
Loading…
Reference in a new issue