Skip to content

Commit

Permalink
chore: fix mac builds (#37)
Browse files Browse the repository at this point in the history
* chore: attemp fixing build script

* fix: strings compare
  • Loading branch information
hugh-onf authored Jul 17, 2023
1 parent 0eac00d commit 2888cbe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
build
!./scripts/build
.DS_Store
onf-cli
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
0.4.1
0.4.2

7 changes: 6 additions & 1 deletion scripts/build/osx.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/sh
export GOOS=darwin
export GOARCH="$(arch)"
ARCH=$(arch)
# Apple no longer support 32bit apps, so as Go 1.15+
if [[ "$ARCH" == "i386" ]]; then
ARCH="amd64"
fi
export GOARCH="$ARCH"

VERSION=$(cat VERSION)
COMMIT=$(git rev-parse HEAD)
Expand Down

0 comments on commit 2888cbe

Please sign in to comment.