瀏覽代碼

09wms-ztf-pad-test.sh

lizw 1 年之前
父節點
當前提交
a5f6cb85fa
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      hua_wei_yun/09wms-ztf-pad-test.sh

+ 9 - 0
hua_wei_yun/09wms-ztf-pad-test.sh

@@ -16,6 +16,15 @@ deploy() {
   git checkout .
   echo -e "$echoPrefix git pull $echoSuffix"
   git pull
+  # 版本号
+  major='1'
+  minor=$(date +%Y%m%d)
+  patch=$(date +1%H%M%S | sed -e 's/^[[:space:]]*//')
+  version="$major.$minor.$patch"
+  echo -e "$echoPrefix 'export const version = '$version'' >> src/version.ts $echoSuffix"
+  echo "export const version = '$version'" >> src/version.ts
+
+#  build
 }
 
 cmd=$1