META-INF.jreleaser.templates.flat-binary.flatpak.cli-app.yml.tpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jreleaser-templates Show documentation
Show all versions of jreleaser-templates Show documentation
JReleaser packager templates
The newest version!
# {{jreleaserCreationStamp}}
app-id: {{flatpakComponentId}}
runtime: {{flatpakRuntime}}
runtime-version: '{{flatpakRuntimeVersion}}'
sdk: {{flatpakSdk}}
{{#flatpakHasSdkExtensions}}
sdk-extensions:
{{#flatpakSdkExtensions}}
- {{.}}
{{/flatpakSdkExtensions}}
{{/flatpakHasSdkExtensions}}
command: {{distributionExecutableName}}
{{#flatpakHasFinishArgs}}
finish-args:
{{#flatpakFinishArgs}}
- {{.}}
{{/flatpakFinishArgs}}
{{/flatpakHasFinishArgs}}
modules:
- name: {{distributionExecutableName}}
buildsystem: simple
build-commands:
- install -Dm755 bin/{{distributionArtifactFile}} /app/bin/{{distributionExecutableName}}
- install -Dm644 {{flatpakComponentId}}.metainfo.xml -t /app/share/metainfo
{{#flatpakIcons}}
- install -Dm644 icons/{{width}}x{{height}}/{{distributionExecutableName}}.png /app/share/icons/hicolor/{{width}}x{{height}}/apps/{{flatpakComponentId}}.png
{{/flatpakIcons}}
sources:
- type: archive
url: {{distributionUrl}}
sha256: {{distributionChecksumSha256}}
- type: file
path: {{flatpakComponentId}}.metainfo.xml
{{#flatpakIcons}}
- type: file
path: icons/{{width}}x{{height}}/{{distributionExecutableName}}.png
dest: icons/{{width}}x{{height}}
{{/flatpakIcons}}