Skip to content

Commit c88dc75

Browse files
committed
improved build script
1 parent 6ed1cf0 commit c88dc75

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

build.sh

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,22 @@ cp src/config_sample.json prod/webspace-backup-beta1-x64-win/config.json
2626
cp src/config_sample.json prod/webspace-backup-beta1-x64-linux/config.json
2727
cp src/config_sample.json prod/webspace-backup-beta1-x64-macos/config.json
2828

29-
zip -r -X prod/webspace-backup-beta1-x64-win.zip prod/webspace-backup-beta1-x64-win
30-
zip -r -X prod/webspace-backup-beta1-x64-macos.zip prod/webspace-backup-beta1-x64-macos
31-
zip -r -X prod/webspace-backup-beta1-x64-linux.zip prod/webspace-backup-beta1-x64-linux
29+
cd prod
30+
31+
cd webspace-backup-beta1-x64-win
32+
zip -r -X ../webspace-backup-beta1-x64-win.zip ./
33+
cd ..
34+
35+
cd webspace-backup-beta1-x64-macos
36+
zip -r -X ../webspace-backup-beta1-x64-macos.zip ./
37+
cd ..
38+
39+
cd webspace-backup-beta1-x64-linux
40+
zip -r -X ../webspace-backup-beta1-x64-linux.zip ./
41+
cd ..
42+
43+
rm -rf webspace-backup-beta1-x64-linux
44+
rm -rf webspace-backup-beta1-x64-macos
45+
rm -rf webspace-backup-beta1-x64-win
46+
3247
echo "Build finished"

0 commit comments

Comments
 (0)