mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 04:50:24 +00:00
✨ Add simple install script for homebrew
This commit is contained in:
parent
55aa25193b
commit
d42010ba9a
2 changed files with 20 additions and 1 deletions
|
@ -31,7 +31,6 @@ class Mas < Formula
|
||||||
"OBJROOT=#{buildpath.realpath}",
|
"OBJROOT=#{buildpath.realpath}",
|
||||||
"SYMROOT=#{buildpath.realpath}"
|
"SYMROOT=#{buildpath.realpath}"
|
||||||
|
|
||||||
system "script/package"
|
|
||||||
system "script/install"
|
system "script/install"
|
||||||
|
|
||||||
bash_completion.install "contrib/completion/mas-completion.bash" => "mas"
|
bash_completion.install "contrib/completion/mas-completion.bash" => "mas"
|
||||||
|
|
20
script/install
Executable file
20
script/install
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
PREFIX=/usr/local
|
||||||
|
INSTALL_TEMPORARY_FOLDER=/tmp/mas-cli.dst
|
||||||
|
|
||||||
|
echo "==> 📲 Installing mas to $PREFIX"
|
||||||
|
|
||||||
|
xcodebuild install
|
||||||
|
|
||||||
|
pushd "$INSTALL_TEMPORARY_FOLDER"
|
||||||
|
|
||||||
|
rsync --archive --delete \
|
||||||
|
Frameworks/MasKit.framework \
|
||||||
|
"$PREFIX/Frameworks/"
|
||||||
|
|
||||||
|
cp -f \
|
||||||
|
bin/mas \
|
||||||
|
"$PREFIX/bin/"
|
||||||
|
|
||||||
|
popd
|
Loading…
Reference in a new issue