镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

How to customize rules #393

Open
Open

Description

@fubb-github
  • JavaPackager version: 1.7.2
  • OS version: ubuntu
  • JDK version: 17
  • Build tool:
    • Maven

Other information (e.g. related issues, suggestions how to fix, links for us to have context)

Activity

  1. lhDream commented on Feb 21, 2024

    @lhDream
    Contributor

    你想怎样自定义?
    可以修改模板文件来实现自定义,对应的 模板文件,放到自己项目的 ${assetsDir} 目录下

  2. fvarrui commented on Feb 25, 2024

    @fvarrui
    Collaborator

    Hi @fubb-github!
    Does @lhDream advice help you?

  3. fvarrui commented on Feb 27, 2024

    @fvarrui
    Collaborator

    @fubb-github ... could you define rules?

  4. fubb-github commented on Mar 4, 2024

    @fubb-github
    Author

    @fubb-github ... could you define rules?

    After I packaged the project into a deb package, the installation was unable to execute the program. It seems to be due to permission issues. I think the program can ignore permissions and run. What should I do? I currently want to try to solve this problem by customizing the rules file. What should I do?

  5. fubb-github commented on Mar 4, 2024

    @fubb-github
    Author

    你想怎样自定义? 可以修改模板文件来实现自定义,对应的 模板文件,放到自己项目的 ${assetsDir} 目录下

    我将项目打包成deb包后,安装无法执行程序,似乎是因为权限问题,我想该程序可以无视权限,运行起来,该怎么做?我目前想通过自定义rules文件来尝试解决,该如何做呢?

  6. lhDream commented on Mar 4, 2024

    @lhDream
    Contributor

    @fubb-github 是安装程序无法执行,还是安装后程序无法执行

  7. fubb-github commented on Mar 4, 2024

    @fubb-github
    Author

    @fubb-github 是安装程序无法执行,还是安装后程序无法执行

    安装后,启动无法应

  8. lhDream commented on Mar 4, 2024

    @lhDream
    Contributor

    @fubb-github 尝试使用root用户进行打包操作

  9. fvarrui commented on Jul 4, 2024

    @fvarrui
    Collaborator

    @fubb-github 是安装程序无法执行,还是安装后程序无法执行

    安装后,启动无法应

    Did you build your app from Linux? Have you tried to run your app from command line in order to see what's the output?

  10. fvarrui commented on Jul 4, 2024

    @fvarrui
    Collaborator

    Anyway, you can try with the latest version: 1.7.6. maybe your issue is already solved.

  11. fvarrui commented on Sep 28, 2024

    @fvarrui
    Collaborator

    I'm closing this issue due to lack of activity. If you need more help, don't hesitate on reopen this issue.

  12. fubb-github commented on Oct 22, 2024

    @fubb-github
    Author

    Anyway, you can try with the latest version: 1.7.6. maybe your issue is already solved.

    I am using version 1.7.6 for packaging, but I cannot start after installing the deb package

  13. fvarrui commented on Oct 4, 2026

    @fvarrui
    Collaborator

    Sorry for the long silence. The GNU/Linux startup script has been rewritten for the upcoming 2.0.0 (argument quoting, appArgs, classpath and other fixes), so this may be solved already.

    Could you try 2.0.0-SNAPSHOT (how to use it: see the README in devel; note the new io.github.javapackager groupId) and, if the app still doesn't start after installing the DEB, run it from a terminal (/opt/<YourApp>/<YourApp>) and paste the output here, together with your plugin configuration?

    I'll close this issue if there's no reply in a few weeks; you can reopen it anytime.

  14. fvarrui commented on Oct 4, 2026

    @fvarrui
    Collaborator

    Quick update: 2.0.0-rc1 is now on Maven Central, so you can test the fix without the snapshots repository, just with the new coordinates:

    • Maven: io.github.javapackager:javapackager:2.0.0-rc1
    • Gradle: classpath 'io.github.javapackager:javapackager:2.0.0-rc1' and apply plugin: 'io.github.javapackager'

    Release notes and upgrade guide: https://github.com/javapackager/JavaPackager/releases/tag/v2.0.0-rc1. Feedback before the final 2.0.0 release would be very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feedbackWaiting for feedbackquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions