Proposal: add a Flatpak packager
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- build-system
Direzione di ricerca
Read the AppImage and DEB packager structures mentioned in the proposal to understand how NBPackage organizes packagers. Check how package.runtime and image-only behavior are handled there, then compare the proposed flatpak-builder flow and options with the existing design. Done means the maintainers agree on the approach and scope before implementation begins.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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 --repoand thenflatpak build-bundle, to create a single.flatpakfile. - Java: the JDK from
package.runtimeis 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
- Are you interested in this feature?
- Is this design OK, or do you prefer a different approach (for example
flatpak build-init/build-finishdirectly, without flatpak-builder)? - 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!
- Lingua principale
- Java
- Stelle
- 35
- Fork
- 13
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/netbeans-nbpackage
-
Add option to skip signing of runtime on macOSForse già presa @geertjanw l’ha presa 33 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
apache/netbeans-nbpackage#138 · 2 commenti ·
-
Update Windows packaging to support Open With... on filesForse già presa @geertjanw l’ha presa 33 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
apache/netbeans-nbpackage#133 ·
Tutte le issue di apache/netbeans-nbpackage
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
wildfly/wildfly-channel#446 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
5.0.x backport enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
spring-cloud/spring-cloud-function#1507 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
open-learning-exchange/myplanet#18484 ·
I maintainer di solito rispondono entro 1 giorno
-
ELProcessor.defineFunction() fails for valid method signaturesForse già presa @RaphaelFakhri l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
jakartaee/expression-language#492 ·