3

JPackage を使用して自己完結型のアプリケーションをデプロイしています。これは、Windows用にコンパイルする方法です。

call "%JAVA_HOME%\bin\jpackage" ^
  --type %INSTALLER_TYPE% ^
  --dest target/installer ^
  --input target/installer/input/libs ^
  --name Deshopp ^
  --main-class com.app.AppLauncher ^
  --main-jar %MAIN_JAR% ^
  --java-options -Xmx2048m ^
  --runtime-image target/java-runtime ^
  --app-version %APP_VERSION% ^
  --icon src/main/logo/windows/logo.ico ^
  --vendor "ACME Inc." ^
  --copyright "Copyright © 2019-20 ACME Inc." ^
  --win-dir-chooser ^
  --win-shortcut ^
  --win-per-user-install ^
  --win-menu

しかし、以下に示す Windows の既定のアイコンの代わりに、アプリケーション ヘッダー/ウィンドウにカスタム アイコンを使用するにはどうすればよいでしょうか?

アプリのヘッダーと Windows の既定のアイコンを示すスクリーンショット

4

1 に答える 1