-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
|
||
rm -rf dist | ||
|
||
mvnd clean package "-DskipTests" | ||
|
||
mkdir target/jpackage | ||
mv target/app-jar-with-dependencies.jar target/jpackage | ||
|
||
# app-image 表示免安装版,部分参数不支持 | ||
# 换行符 psh 为 `,cmd 为 ^,linux 为 \ | ||
jpackage \ | ||
--name "SoNovel" \ | ||
--type "app-image" \ | ||
--win-console \ | ||
--input "target/jpackage" \ | ||
--dest dist \ | ||
--icon input/logo.ico \ | ||
--app-version 1.5.3 \ | ||
--copyright "Copyright (C) 2024 pcdd. All rights reserved." \ | ||
--description "开源搜书神器" \ | ||
--vendor "github.com/pcdd-group" \ | ||
--main-jar "app-jar-with-dependencies.jar" | ||
|
||
cp config.ini dist/SoNovel | ||
rm dist/SoNovel/*.ico | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters