Skip to content

Commit

Permalink
build cross platform
Browse files Browse the repository at this point in the history
  • Loading branch information
ariary committed Nov 3, 2023
1 parent 085cb2b commit 92c17a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build-cross-platform.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

EXENAME="tacos"
TARGET=$(go tool dist list|gum filter --placeholder="choose target os & arch")
export GOOS=$(echo $TARGET|cut -f1 -d '/')
export GOARCH=$(echo $TARGET|cut -f2 -d '/')

echo "build ${EXENAME}-${GOOS}-${GOARCH} in ${PWD}"
CGO_ENABLED=0 go build -o ${EXENAME} cmd/tacos/tacos.go
Empty file modified wrap/install-wrap.sh
100644 → 100755
Empty file.

0 comments on commit 92c17a3

Please sign in to comment.