Skip to content

Commit

Permalink
Fix release.sh bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yorukot committed May 13, 2024
1 parent 4795cc5 commit b91b606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ for os in "${osList[@]}"; do
echo "$projectName-$os-$version-$arch"
mkdir "./dist/$projectName-$os-$version-$arch"
cd ../ || exit
env GOOS="$os" GOARCH="$arch" CGO_ENABLED=0 go build -o "../release/dist/$projectName-$os-$version-$arch/spf.exe" main.go
env GOOS="$os" GOARCH="$arch" CGO_ENABLED=0 go build -o "./release/dist/$projectName-$os-$version-$arch/spf.exe" main.go
cd ./release || exit
zip -r "./dist/$projectName-$os-$version-$arch.zip" "./dist/$projectName-$os-$version-$arch"
done
Expand All @@ -21,7 +21,7 @@ for os in "${osList[@]}"; do
echo "$projectName-$os-$version-$arch"
mkdir "./dist/$projectName-$os-$version-$arch"
cd ../ || exit
env GOOS="$os" GOARCH="$arch" CGO_ENABLED=0 go build -o "../release/dist/$projectName-$os-$version-$arch/spf" main.go
env GOOS="$os" GOARCH="$arch" CGO_ENABLED=0 go build -o "./release/dist/$projectName-$os-$version-$arch/spf" main.go
cd ./release || exit
tar czf "./dist/$projectName-$os-$version-$arch.tar.gz" "./dist/$projectName-$os-$version-$arch"
done
Expand Down

0 comments on commit b91b606

Please sign in to comment.