Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mod committed Jan 31, 2023
2 parents dc3d0c4 + 6db71ce commit 50f3e09
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ targetarch="amd64"
cd src/
version=$(go run . -v)

if [[ "$targetos" == *"Windows_NT"* ]];
if [[ "$targetos" == *"Windows"* ]];
then
set GOARCH="$targetarch"
set GOOS="$targetos"
Expand All @@ -23,9 +23,7 @@ then
mv "$name-windows-""$targetarch"-"$version""$extension" ../
ls -lah
else
targetos=$(sw_vers | awk '{print $1$2$3}' | head -n 1)
echo "Target OS: $targetos"
if [[ "$targetos" == *"MacOS"* ]];
if [[ "$targetos" == *"macOS"* ]];
then
echo "$PWD"
env GO111MODULE=on GOOS="darwin" GOARCH="$targetarch" go build -ldflags "-s -w" -o "$name-darwin-""$targetarch"-"$version" .
Expand Down

0 comments on commit 50f3e09

Please sign in to comment.