diff --git a/bin/jpackage-linux.sh b/bin/jpackage-linux.sh index 3bf48e1..d6addfe 100644 --- a/bin/jpackage-linux.sh +++ b/bin/jpackage-linux.sh @@ -13,7 +13,7 @@ jpackage \ --name "SoNovel" \ --input "target/jpackage" \ --dest dist \ ---icon assets/logo.ico \ +--icon input/logo.ico \ --app-version 1.5.3 \ --copyright "Copyright (C) 2024 pcdd. All rights reserved." \ --description "开源搜书神器" \ diff --git a/bin/jpackage-windows.sh b/bin/jpackage-windows.sh index 136225a..cfdb61f 100644 --- a/bin/jpackage-windows.sh +++ b/bin/jpackage-windows.sh @@ -9,7 +9,7 @@ jpackage --version echo "开始构建exe" # TODO fix Error: Invalid Option: [target] -jpackage --name "SoNovel" --type "app-image" --input "nobug/jpackage" --dest dist --icon assets/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" --win-console +jpackage --name "SoNovel" --type "app-image" --input "nobug/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" --win-console # cp: cannot create regular file 'dist/SoNovel': No such file or directory cp config.ini dist/SoNovel diff --git a/assets/logo.ico b/input/logo.ico similarity index 100% rename from assets/logo.ico rename to input/logo.ico diff --git a/pom.xml b/pom.xml index d65ebed..5060b9d 100644 --- a/pom.xml +++ b/pom.xml @@ -110,7 +110,7 @@ console target/SoNovel/SoNovel.exe ${project.build.directory}/app-jar-with-dependencies.jar - ${project.basedir}/assets/logo.ico + input/logo.ico SoNovel true