Sync dependencies from tap in add_brew_extension

This commit is contained in:
Shivam Mathur 2020-11-26 11:00:53 +05:30
parent 8185c8186b
commit ca291eadaf
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -83,6 +83,8 @@ add_brew_extension() {
if ! brew tap | grep shivammathur/extensions; then
brew tap --shallow shivammathur/extensions
fi
tap_dir="$(brew --prefix)/Homebrew/Library/Taps"
sudo mv "$tap_dir"/shivammathur/homebrew-extensions/.github/deps/"$extension"/* "$tap_dir/homebrew/homebrew-core/Formula/" 2>/dev/null || true
brew install "$extension@$version"
sudo cp "$(brew --prefix)/opt/$extension@$version/$extension.so" "$ext_dir"
}