-
Notifications
You must be signed in to change notification settings - Fork 80
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
3 changed files
with
61 additions
and
38 deletions.
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
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 |
---|---|---|
@@ -1,25 +1,28 @@ | ||
# 测试通过 | ||
|
||
rm -rf dist | ||
|
||
mvn clean package "-DskipTests" | ||
|
||
cd target | ||
mkdir tmp | ||
mv app-jar-with-dependencies.jar tmp | ||
mv classes tmp | ||
pwd | ||
ls | ||
cd .. | ||
pwd | ||
ls | ||
mkdir target/jpackage | ||
mv target/app-jar-with-dependencies.jar target/jpackage | ||
|
||
# 在 linux 环境会转换为 .deb 文件 | ||
# type=app-image 记得去掉--about-url | ||
jpackage \ | ||
--name "So Novel" \ | ||
--input "target/tmp" \ | ||
--name "SoNovel" \ | ||
--input "target/jpackage" \ | ||
--dest dist \ | ||
--icon assets/logo.ico \ | ||
--app-version 1.5.1 \ | ||
--app-version 1.5.3 \ | ||
--copyright "Copyright (C) 2024 pcdd. All rights reserved." \ | ||
--description "开源搜书神器" \ | ||
--vendor "github.com/pcdd-group" \ | ||
--about-url "github.com/pcdd-group/so-novel" \ | ||
--main-jar app-jar-with-dependencies.jar | ||
--main-jar "app-jar-with-dependencies.jar" | ||
|
||
cp config.ini dist/SoNovel | ||
rm dist/SoNovel/*.ico | ||
|
||
tar -zcvf app.tar.gz dist | ||
echo "开始打包压缩" | ||
tar czvf dist/SoNovel_linux.tar.gz dist/SoNovel |
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