Skip to content

Commit

Permalink
Fix the scripts/build-release.sh (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstmdev authored Jul 1, 2023
1 parent 4128015 commit cf2e83c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ git checkout main
echo -e "$(git rev-parse main)\c" >internal/version/commit

# set GOPROXY environment variable
# GOPROXY=https://goproxy.cn
# export GOPROXY=https://goproxy.cn

############################## linux-release ##############################

# set go env for linux
GOOS=linux
GOARCH=amd64
export GOOS=linux
export GOARCH=amd64

# build gofs
go build -v -o . ./...
Expand All @@ -41,8 +41,8 @@ rm -rf "$GOFS_RELEASE"
############################# windows-release #############################

# set go env for windows
GOOS=windows
GOARCH=amd64
export GOOS=windows
export GOARCH=amd64

# build gofs
go build -v -o . ./...
Expand All @@ -66,8 +66,8 @@ rm -rf "$GOFS_RELEASE"
############################## macOS-release ##############################

# set go env for macOS
GOOS=darwin
GOARCH=amd64
export GOOS=darwin
export GOARCH=amd64

# build gofs
go build -v -o . ./...
Expand Down

0 comments on commit cf2e83c

Please sign in to comment.