diff --git a/build.sh b/build.sh index a1198ea..507db4d 100644 --- a/build.sh +++ b/build.sh @@ -12,7 +12,7 @@ generate(){ CGO_ENABLED=0 GOOS=$1 GOARCH=$2 go build -o auto-mooc -ldflags '-s -w' mv auto-mooc ./out/auto-mooc cd out - tar -zcf auto-mooc.tar.gz auto-mooc-$2-$1 LICENSE + tar -zcf auto-mooc-$2-$1.tar.gz auto-mooc LICENSE rm -rf ./auto-mooc cd ../ } @@ -21,7 +21,7 @@ generate_exe(){ CGO_ENABLED=0 GOOS=windows GOARCH=$1 go build -o auto-mooc -ldflags '-s -w' mv auto-mooc ./out/auto-mooc.exe cd out - zip -q auto-mooc-$1-windows.zip auto-mooc.exe LICENSE + tar -zcf auto-mooc-$1-windows.zip auto-mooc.exe LICENSE rm -rf ./auto-mooc-$1-windows.exe cd ../ }