2 Commits eabb74e8c3 ... 0c2e008ff1

Autore SHA1 Messaggio Data
  pigflower 0c2e008ff1 Merge branch 'dev' of http://43.226.57.217:3000/yishanyou/chuanzhanServer into dev 3 settimane fa
  pigflower 8285a27033 发布脚本修改 3 settimane fa
1 ha cambiato i file con 14 aggiunte e 4 eliminazioni
  1. 14 4
      docs/publish.sh

+ 14 - 4
docs/publish.sh

@@ -1,6 +1,16 @@
 #!/bin/bash
 
-rsync -av \
-  --exclude='dev/' \
-  --exclude='logfile/' \
-  _output.server_dev/ _output.server/
+cd "$(dirname "$0")"
+
+if [ "$1" == "battle" ]; then
+  rsync -av \
+    --exclude='Config.json' \
+    --exclude='libslua.so' \
+    --exclude='*.sh' \
+    _output.battle.server/ ../_output.battle.server/
+else
+  rsync -av \
+    --exclude='dev/' \
+    --exclude='logfile/' \
+    _output.server/ ../_output.server/
+fi