【fix】 添加版本记录

This commit is contained in:
wujiawei
2025-07-09 22:15:54 +08:00
parent 74eab26478
commit f2fede4a96
3 changed files with 81 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
# 打包镜像
```shell
mvn -Pnative -DskipTests clean package native:compile
@@ -95,3 +95,36 @@ http://127.0.0.1:18080
```
| 参数 | 描述 |
|-----------------|-------------------------------|
| --type | 指定打包后的格式,如 msi、exe、dmg默认 exe |
| --win-console | 使用控制台窗口启动我们的应用程序 |
| --input | 指定包含应用程序jar和其他资源的目录 |
| --name | 指定应用程序的名称 |
| --main-jar | 指定主jar文件. |
| --main-class | 指定主类如果jar是可执行jar可以省略 |
| --runtime-image | 指定JRE镜像如果需要打包JRE |
| --icon | 指定应用程序的图标 |
# 打包dmg
## 打包成Mac程序
```shell
jpackage \
--input target \
--name wlcn-client \
--main-jar wu-lazy-cloud-heartbeat-client-start-1.3.1-JDK24-SNAPSHOT.jar \
--main-class org.framework.lazy.cloud.network.heartbeat.client.LazyCloudHeartbeatClientStart \
--type dmg \
--vendor "小吴小吴bug全无" \
--app-version 1.3.1 \
--icon src/main/resources/app.icns \
--resource-dir src/main/jpackage-resources \
--verbose\
--java-options "-XstartOnFirstThread" \
--java-options "-Dlogging.file.name=logs/wlcn-client.log" \
--java-options "-Dapple.awt.UIElement=false"
```

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>YourApp</string>
<key>CFBundleIconFile</key>
<string>app.icns</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.yourapp</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Your App</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>LSUIElement</key>
<false/> <!-- 确保应用显示在Dock中 -->
</dict>
</plist>

View File

@@ -0,0 +1,19 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<!-- 背景圆形 -->
<circle cx="50" cy="50" r="45" fill="#2563eb" />
<!-- 网络信号图标 -->
<path d="M25,75 Q50,45 75,75 M35,75 Q50,55 65,75 M45,75 Q50,65 55,75" fill="none" stroke="white" stroke-width="5" stroke-linecap="round" />
<!-- 中央连接点 -->
<circle cx="50" cy="75" r="5" fill="white" />
<!-- 计算机屏幕 -->
<rect x="35" y="25" width="30" height="20" rx="2" fill="white" stroke="#1e40af" stroke-width="2" />
<rect x="38" y="28" width="24" height="14" fill="#1e40af" />
<!-- 计算机底座 -->
<rect x="43" y="45" width="14" height="3" fill="#1e40af" />
<rect x="46" y="48" width="8" height="2" fill="#1e40af" />
</svg>

After

Width:  |  Height:  |  Size: 750 B