Browse Source

09wms-ztf-pad-test.sh

lizw 1 year ago
parent
commit
a5f6cb85fa
1 changed files with 9 additions and 0 deletions
  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