gattolfo98 opened a new issue, #149:
URL: https://github.com/apache/netbeans-nbpackage/issues/149

   Hi,
   I would like to add Flatpak support to NBPackage, as a new packager type 
`linux-flatpak`. Before I write any code, I want to ask if you are interested 
in this feature, and if the design below is OK for you.
   
   **Idea**
   - A new package `org.apache.netbeans.nbpackage.flatpak`, with the same 
structure as the AppImage and DEB packagers.
   - The image is a flatpak-builder project folder: a YAML manifest, the 
application files, a .desktop file, a metainfo file and icons. With 
`--image-only`, users get a manifest they can edit.
   - The package step runs `flatpak-builder --repo` and then `flatpak 
build-bundle`, to create a single `.flatpak` file.
   - Java: the JDK from `package.runtime` is copied to `/app/jdk`. If no 
runtime is set, the user can choose an OpenJDK SDK extension instead.
   - New options, for example `package.flatpak.app-id` (required), runtime and 
SDK version, and finish-args (sandbox permissions).
   
   **Why**
   NetBeans is already on Flathub (flathub/org.apache.netbeans), but that 
manifest is maintained outside the project and only covers the IDE. With a 
packager in NBPackage, platform (RCP) applications could also be packaged as 
Flatpak, with the same tool and configuration as the other formats. For 
example, the jMonkeyEngine SDK already uses NBPackage to build its DEB, Windows 
and macOS installers. A linux-flatpak packager would let projects like this 
publish a Flatpak with the same configuration.
   
   **Questions**
   1. Are you interested in this feature?
   2. Is this design OK, or do you prefer a different approach (for example 
`flatpak build-init` / `build-finish` directly, without flatpak-builder)?
   3. Is it OK to install flatpak and flatpak-builder in the Linux CI job?
   
   If you agree, I can open a first PR with the packager, unit tests and README 
changes, and a second PR for CI.
   
   Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to