-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathio.github.dbchoco.Salawat.yml
47 lines (47 loc) · 1.76 KB
/
io.github.dbchoco.Salawat.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
39
40
41
42
43
44
45
46
47
app-id: io.github.dbchoco.Salawat
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk17
command: salawat
finish-args:
- --share=network
- --share=ipc
- --socket=x11
- --socket=wayland
- --socket=pulseaudio
- --env=PATH=/app/jre/bin:/app/bin:/usr/bin
- --env=JAVA_HOME=/app/jre
- --filesystem=home ##Added because app needs acces to some mp3 files choosen by host. not read only because needs to save as well
modules:
- name: salawat
buildsystem: simple
build-options:
env:
PATH: /app/bin:/usr/bin:/usr/lib/sdk/openjdk17/bin
JAVA_HOME: /usr/lib/sdk/openjdk17/jvm/openjdk-17
build-commands:
- install --directory --mode=0755 /app/salawat
- install -Dm755 Salawat-1.3.0.jar /app/salawat/Salawat.jar
- install -Dm755 salawat.sh /app/bin/salawat
- install -Dm644 io.github.dbchoco.Salawat.png /app/share/icons/hicolor/512x512/apps/$FLATPAK_ID.png
- install -Dm644 io.github.dbchoco.Salawat.desktop /app/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 io.github.dbchoco.Salawat.metainfo.xml /app/share/metainfo/$FLATPAK_ID.metainfo.xml
sources:
- type: file
url: https://github.com/DBChoco/Salawat/releases/download/v1.3.0/Salawat-1.3.0.jar
sha256: 7f29b1f409509265224e9aaeba1c2999e7666a1ca2698037c421fec314cd56be
- type: file
path: io.github.dbchoco.Salawat.metainfo.xml
- type: file
path: io.github.dbchoco.Salawat.png
- type: file
path: io.github.dbchoco.Salawat.desktop
- type: file
path: salawat.sh
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk17/install.sh