Skip to content

Commit

Permalink
Merge branch 'metacall:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
FirePing32 authored Jul 30, 2024
2 parents 8848337 + 0517fff commit e290b27
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ fi
# Get brew formula
wget https://raw.githubusercontent.com/metacall/homebrew/main/metacall.rb

export HOMEBREW_NO_AUTO_UPDATE=1

# Build metacall brew recipe
export HOMEBREW_NO_AUTO_UPDATE=1
brew install --build-from-source --overwrite --verbose ./metacall.rb

# Build distributable binary using brew pkg
architecture() {
function architecture() {
local arch=$(uname -m)

case ${arch} in
Expand All @@ -37,8 +36,8 @@ architecture() {
METACALL_VERSION=`brew info metacall | grep -i "stable" | awk '{print $4}' | sed 's/.$//'`
METACALL_ARCH=`architecture`

brew tap --verbose metacall/brew-pkg
brew install --verbose --HEAD metacall/brew-pkg/brew-pkg
mkdir pkg && cd pkg
wget https://raw.githubusercontent.com/metacall/brew-pkg/master/brew-pkg.rb
brew install --build-from-source --overwrite --verbose ./brew-pkg.rb
brew pkg --with-deps metacall
mv metacall-${METACALL_VERSION}.pkg metacall-tarball-macos-${METACALL_ARCH}.pkg

0 comments on commit e290b27

Please sign in to comment.