diff --git a/scripts/win/client_native_build.bat b/scripts/win/client_native_build.bat new file mode 100644 index 00000000..d009b376 --- /dev/null +++ b/scripts/win/client_native_build.bat @@ -0,0 +1,35 @@ +@echo off +@rem console output code changed to UTF-8 +chcp 65001 +@rem basic params +set MODULE_NAME=neutrino-proxy-client +@rem step +cd %~dp0 && cd ../../ + +SET VS_HOME=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519 +SET JAVA_HOME=C:\my\package\jdk\graalvm-community-openjdk-21.0.2 +SET MAVEN_HOME=C:\my\package\maven\apache-maven-3.9.6 +SET PATH=%PATH%;%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%VS_HOME%\bin +SET INCLUDE=%INCLUDE%;%VS_HOME%\include; +SET LIB=%LIB%;%VS_HOME%\lib; + +SET deployDir="deploy" +SET clientDeployDir=%deployDir%\client +SET machine=windows + +@rem 初始化文件夹 +mkdir -p $clientDeployDir + +@rem 删除原来的编译文件 +del -rf %clientDeployDir%/%MODULE_NAME%.jar +del -rf %clientDeployDir%/%MODULE_NAME% +del -rf %clientDeployDir%/%MODULE_NAME%-jar +del -rf %clientDeployDir%/%MODULE_NAME%-jar.zip +del -rf %clientDeployDir%/%MODULE_NAME%-${machine}-native +del -rf %clientDeployDir%/%MODULE_NAME%-${machine}-native.zip + +@rem 客户端打包 +call mvn clean install -U -pl %MODULE_NAME% -am -Dmaven.test.skip=true +cd %MODULE_NAME% +mvn clean native:compile -P native -DskipTests +cd .. \ No newline at end of file