-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdk.gtz.graphedit.Graphedit.yml
38 lines (38 loc) · 1.47 KB
/
dk.gtz.graphedit.Graphedit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# flatpak configuration
app-id: dk.gtz.graphedit.Graphedit
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk17
command: graphedit
finish-args:
- --env=PATH=/app/jre/bin:/app/bin:/usr/bin # So we can run the java17 runtime from /app/jre
- --socket=fallback-x11 # So we can display the GUI
- --filesystem=host # So we can store and read model files
- --persist=path # For the global graphedit.settings.json file
only-arches: # TODO: - aarch64 as well (do it with different sources)
- x86_64
modules:
- name: openjdk17
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk17/install.sh
- name: graphedit
sources:
- type: dir
path: graphedit/src/main/resources
- type: archive
dest: graphedit-bin
strip-components: 0
only-arches:
- x86_64
url: https://github.com/sillydan1/graphedit/releases/download/latest/graphedit-bin-x86_64.zip
sha256: a8d107bc49bb28d8d1e4888f904e2a92fb68313414ac976379ca698b0319b977
buildsystem: simple
build-commands:
- mkdir -p /app/bin /app/lib
- install -D graphedit-bin/bin/* /app/bin/
- install -D graphedit-bin/lib/* /app/lib/
- install -D icon/master.svg /app/share/icons/hicolor/scalable/apps/dk.gtz.graphedit.Graphedit.svg
- install -D dk.gtz.graphedit-Graphedit.desktop /app/share/applications/dk.gtz.graphedit-Graphedit.desktop