doc: #I7X2YR 增加windows打包步骤说明
This commit is contained in:
parent
d883a581f6
commit
8d0bf22ad7
3
tool/build.bat
Normal file
3
tool/build.bat
Normal file
@ -0,0 +1,3 @@
|
||||
cd ..
|
||||
mvn clean gluonfx:build
|
||||
cd tool
|
||||
BIN
tool/images/env.png
Normal file
BIN
tool/images/env.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
tool/images/path.png
Normal file
BIN
tool/images/path.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
30
tool/package.md
Normal file
30
tool/package.md
Normal file
@ -0,0 +1,30 @@
|
||||
# 打包
|
||||
## 准备
|
||||
1. 下载maven 3.8.8, [Download](https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.zip)
|
||||
2. 下载GraalVM。在[GraalVM下载页](https://www.graalvm.org/downloads/#)选择Java17,操作系统后,点击Download下载。
|
||||
|
||||
# Windows下基于GraalVM的打包
|
||||
## 配置maven和GraalVM
|
||||
1. 将下载的压缩包解压到目录,例如:d:\tools\maven,D:\tools\graalvm-17\graalvm-jdk-17.0.8+9.1
|
||||
2. 配置环境变量
|
||||
```
|
||||
GRAALVM_HOME=D:\tools\graalvm-17\graalvm-jdk-17.0.8+9.1
|
||||
M2_HOME=d:\tools\maven
|
||||
```
|
||||

|
||||
3. 配置PATH环境变量
|
||||

|
||||
4. 安装visual studio build tools
|
||||
安装说明:https://www.graalvm.org/latest/docs/getting-started/windows/
|
||||
a) 下载安装程序:https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16
|
||||
b) 参考网页中的安装步骤
|
||||
5. 验证安装成功
|
||||
使用下面命令启动编译环境
|
||||
```
|
||||
cmd.exe /k F:\vs\ide\VC\Auxiliary\Build\vcvars64.bat
|
||||
```
|
||||
需要把F:\vs\ide替换为本地的visual stuido安装路径。
|
||||
6. 进入项目tool目录,执行build.bat进行打包,生成可执行文件。
|
||||
```
|
||||
build.bat
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user