fvarrui / JavaPackager

:package: Gradle/Maven plugin to package Java applications as native Windows, MacOS, or Linux executables and create installers for them.
GNU General Public License v3.0
1.07k stars 133 forks source link

SnapCraft support #229

Open kerner1000 opened 2 years ago

kerner1000 commented 2 years ago

I'm submitting a…

Short description of the issue/suggestion:

It would be nice to have support to build a SnapCraft snap.

fvarrui commented 1 year ago

Currently researching about SnapCraft

fvarrui commented 1 year ago

Snap package manually built with success for a sample project using next config file (target/snap/snapcraft.yaml):

name: helloworldmaven
base: core22
version: '1.0.0'
summary: Hello world app packaged with JavaPackager
description: |
  This is HelloWorld description.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots

apps:
  HelloWorldMaven:
    command: HelloWorldMaven
    extensions: [ gnome ]
    environment:
      JAVA_HOME: $SNAP/jre
      PATH: $JAVA_HOME/jre/bin:$PATH

parts:
  app:
    plugin: dump
    source: ./HelloWorldMaven
    source-type: local
fvarrui commented 1 year ago

Work in progress on issue-229.