File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ deploy:
19
19
- $TRAVIS_BUILD_DIR/tar/gotournament-linux-amd64.tar.gz
20
20
- $TRAVIS_BUILD_DIR/tar/gotournament-linux-arm64.tar.gz
21
21
- $TRAVIS_BUILD_DIR/tar/gotournament-linux-arm.tar.gz
22
- - $TRAVIS_BUILD_DIR/tar/gotournament-windows-386.tar.gz
23
- - $TRAVIS_BUILD_DIR/tar/gotournament-windows-amd64.tar.gz
22
+ - $TRAVIS_BUILD_DIR/tar/gotournament-windows-386.zip
23
+ - $TRAVIS_BUILD_DIR/tar/gotournament-windows-amd64.zip
24
24
skip_cleanup : true
25
25
overwrite : true
26
26
on :
Original file line number Diff line number Diff line change 30
30
cp -r tpl bin/$goos /$goarch /tpl
31
31
32
32
# pack
33
- tar cfvz tar/$name -$goos -$goarch .tar.gz -C bin/$goos /$goarch .
33
+ if [ " $goos " == " windows" ]; then
34
+ base=$( pwd)
35
+ pushd bin/$goos /$goarch
36
+ zip -r $base /tar/$name -$goos -$goarch .zip ./*
37
+ popd
38
+ else
39
+ tar cfvz tar/$name -$goos -$goarch .tar.gz -C bin/$goos /$goarch .
40
+ fi
34
41
done
You can’t perform that action at this time.
0 commit comments