From b91b6069d2665cc04bdfef8f80420b70e32c5900 Mon Sep 17 00:00:00 2001 From: Night Cat <107802416+MHNightCat@users.noreply.github.com> Date: Mon, 13 May 2024 22:42:03 +0800 Subject: [PATCH] Fix release.sh bug --- release/release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/release.sh b/release/release.sh index b6b7d621..bf978325 100644 --- a/release/release.sh +++ b/release/release.sh @@ -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 @@ -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