Sfoglia il codice sorgente

更新QueryService -》 queryservice

deng.yinping 3 anni fa
parent
commit
95b6d943fd
3 ha cambiato i file con 21 aggiunte e 5 eliminazioni
  1. 9 1
      .gitignore
  2. 3 3
      controllers/other/upmtpgo.sh
  3. 9 1
      res/sh/mtp2.0_QueryService_linux.sh

+ 9 - 1
.gitignore

@@ -1,10 +1,18 @@
+/*
+ * @Author: deng.yinping deng.yinping@muchinfo.cn
+ * @Date: 2022-11-22 09:48:31
+ * @LastEditors: deng.yinping deng.yinping@muchinfo.cn
+ * @LastEditTime: 2022-11-25 17:17:00
+ * @FilePath: \MTP20_IF\.gitignore
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+ */
 __debug_bin
 .vscode/launch.json
 /log
 .DS_Store
 mtp2_if
 /bin
-QueryService
+queryservice
 go.sum
 mtp2_if.exe
 .idea

+ 3 - 3
controllers/other/upmtpgo.sh

@@ -12,7 +12,7 @@ function excute() {
     else
       # 获取最新版本的文件名
       rm -f console
-      wget -c http://192.168.30.153:8080/view/mtp2.0_release/job/mtp2.0_QueryService_linux/label=192.168.31.56/lastBuild/console
+      wget -c http://192.168.30.153:8080/view/mtp2.0_release/job/mtp2.0_queryservice_linux/label=192.168.31.56/lastBuild/console
       filename=`grep -o -w -m1 mtp2.*zip console`
       updateSpecialVer $filename
     fi
@@ -31,8 +31,8 @@ function updateSpecialVer() {
     cp -rf ./queryservice/* ../
     cd ..
     rm -rf upmtpgo
-    pkill QueryService
-    nohup `pwd`/QueryService &
+    pkill queryservice
+    nohup `pwd`/queryservice &
     rm -f ./update.sh
     rm -f console
 }

+ 9 - 1
res/sh/mtp2.0_QueryService_linux.sh

@@ -1,4 +1,12 @@
 #!/bin/bash
+###
+ # @Author: deng.yinping deng.yinping@muchinfo.cn
+ # @Date: 2022-11-22 09:48:32
+ # @LastEditors: deng.yinping deng.yinping@muchinfo.cn
+ # @LastEditTime: 2022-11-25 17:16:17
+ # @FilePath: \MTP20_IF\res\sh\mtp2.0_queryservice_linux.sh
+ # @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+### 
 
 export base=$HOME/build/git/MTP20_IF
 
@@ -43,7 +51,7 @@ function build()
   local datestr=`date +%Y%m%d%H%M%S`
   local zipfile=mtp2_queryservice_r20_${datestr}.zip
 
-  go build -ldflags "-X 'main._VERSION_=$zipfile' -X 'main._GITHASH_=$githash'" -a -o bin/QueryService
+  go build -ldflags "-X 'main._VERSION_=$zipfile' -X 'main._GITHASH_=$githash'" -a -o bin/queryservice
   if [ $? -ne 0  ]; then
     echo "go build err: 2"
     exit 2