mirror of
https://github.com/mas-cli/mas
synced 2024-11-26 05:20:18 +00:00
📜 Add bottle script
This commit is contained in:
parent
ee2e5ca98a
commit
ee20ed1451
1 changed files with 25 additions and 0 deletions
25
script/bottle
Executable file
25
script/bottle
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
#
|
||||||
|
# script/bottle
|
||||||
|
# mas
|
||||||
|
#
|
||||||
|
# Builds bottles of mas Homebrew formula.
|
||||||
|
#
|
||||||
|
|
||||||
|
set ROOT_URL=https://dl.bintray.com/phatblat/mas-bottles
|
||||||
|
|
||||||
|
echo "==> 🍼 Bottling mas"
|
||||||
|
|
||||||
|
# Ensure core formula isn't shadowed by custom tap
|
||||||
|
brew tap --list-pinned | grep mas-cli/tap && brew tap-unpin mas-cli/tap
|
||||||
|
|
||||||
|
# Uninstall if necessary
|
||||||
|
if brew ls --versions mas > /dev/null; then
|
||||||
|
brew uninstall mas
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Build the formula
|
||||||
|
brew install --build-bottle mas
|
||||||
|
|
||||||
|
# Generate bottle do block
|
||||||
|
brew bottle --verbose --no-rebuild --root-url=$ROOT_URL mas
|
Loading…
Reference in a new issue