Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
skye-z committed Sep 20, 2023
1 parent d4e3359 commit ef6472d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ../
}
Expand All @@ -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 ../
}
Expand Down

0 comments on commit ef6472d

Please sign in to comment.