diff --git a/hua_wei_yun/09wms-ztf-pad-test.sh b/hua_wei_yun/09wms-ztf-pad-test.sh index 4aeaaa3..49babc0 100644 --- a/hua_wei_yun/09wms-ztf-pad-test.sh +++ b/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