From d8d4fbf6a6c66f0bd04d43e0d5b985ab76040b1d Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Tue, 7 May 2024 18:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ewin=E4=B8=8B=E7=9A=84?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AFnative=E6=89=93=E5=8C=85=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/win/client_native_build.bat | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 scripts/win/client_native_build.bat 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