Browse Source

修改编译脚本

AE86 2 years ago
parent
commit
1dd6ce323c
3 changed files with 5 additions and 3 deletions
  1. 1 1
      build.cmd
  2. 1 1
      build.sh
  3. 3 1
      version.cmd

+ 1 - 1
build.cmd

@@ -7,6 +7,6 @@ echo "Build Project ..."
 call mvn compile package -f pom.xml -D"maven.test.skip=true"
 
 set CP_PATH=%~dp0
-xcopy %CP_PATH%dbsyncer-web\target\dbsyncer-*.zip %CP_PATH% /y
+move %CP_PATH%dbsyncer-web\target\dbsyncer-*.zip %CP_PATH%
 
 :exit

+ 1 - 1
build.sh

@@ -4,4 +4,4 @@ mvn clean -f pom.xml
 mvn compile package -f pom.xml -Dmaven.test.skip=true
 
 CURRENT_DIR=$(pwd);
-cp -rvf $CURRENT_DIR/dbsyncer-web/target/dbsyncer-*.zip $CURRENT_DIR
+mv -rvf $CURRENT_DIR/dbsyncer-web/target/dbsyncer-*.zip $CURRENT_DIR

+ 3 - 1
version.cmd

@@ -1,6 +1,8 @@
 @echo off
 
-set /p APP_VERSION=Please enter a new version number(1.2.3-RC_0413):
+set CURRENT_DATE=%date:~5,2%%date:~8,2%
+set VERSION=1.2.3-RC_%CURRENT_DATE%
+set /p APP_VERSION=Please enter a new version number(%VERSION%): || set APP_VERSION=%VERSION%
 echo %APP_VERSION%
 
 echo "Clean Project ..."