Skip to content

Commit

Permalink
🔨 Invoke bottle script from brew_tap_update
Browse files Browse the repository at this point in the history
  • Loading branch information
phatblat committed Mar 11, 2024
1 parent 20ba23e commit 37cf311
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
6 changes: 3 additions & 3 deletions script/bottle
Expand Up @@ -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}"
Expand All @@ -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]}
Expand Down
14 changes: 13 additions & 1 deletion script/brew_tap_update
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit 37cf311

Please sign in to comment.