forked from flathub/org.ferdium.Ferdium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.ferdium.Ferdium.yaml
94 lines (94 loc) · 3.94 KB
/
org.ferdium.Ferdium.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
app-id: org.ferdium.Ferdium
base: org.electronjs.Electron2.BaseApp
base-version: '21.08'
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: ferdium
separate-locales: false
rename-desktop-file: ferdium.desktop
rename-icon: ferdium
finish-args:
- --socket=x11
- --share=ipc
- --socket=pulseaudio
- --share=network
- --device=all
- --filesystem=home:ro
- --filesystem=xdg-download
- --filesystem=/run/.heim_org.h5l.kcm-socket
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
- --own-name=org.kde.*
modules:
- name: krb5
subdir: src
config-opts:
- --disable-static
- --disable-rpath
sources:
- type: archive
url: https://kerberos.org/dist/krb5/1.19/krb5-1.19.3.tar.gz
sha256: 56d04863cfddc9d9eb7af17556e043e3537d41c6e545610778676cf551b9dcd0
x-checker-data:
type: anitya
project-id: 13287
stable-only: true
url-template: https://kerberos.org/dist/krb5/$major.$minor/krb5-$major.$minor.$patch.tar.gz
- name: krb5-config
buildsystem: simple
sources:
- type: file
path: krb5.conf
build-commands:
- mkdir -p /app/etc
- install -m 644 krb5.conf /app/etc/krb5.conf
- name: ferdium-desktop
buildsystem: simple
build-commands:
- ar x Ferdium-*.deb
- rm -f Ferdium-*.deb
- tar xf data.tar.xz
- rm -f control.tar.gz data.tar.xz debian-binary
- cp -r usr/* opt/* /app
- chmod -R a-s,go+rX,go-w /app/Ferdium
- rm -r /app/share/icons/hicolor/1024x1024
- desktop-file-edit --set-key=Exec --set-value='ferdium %U' /app/share/applications/ferdium.desktop
- install ferdium.sh /app/bin/ferdium
- install -Dm644 org.ferdium.Ferdium.metainfo.xml /app/share/metainfo/org.ferdium.Ferdium.metainfo.xml
sources:
- type: file
only-arches:
- x86_64
url: https://github.com/ferdium/ferdium-app/releases/download/v6.0.0-nightly.66/ferdium_6.0.0-nightly.66_amd64.deb
sha256: a858e698c7248bbf31e4e60d26bcae83e7af9e1049ee43913e5fe90000d1253e
x-checker-data:
type: json
url: https://api.github.com/repos/ferdium/ferdium-app/releases
version-query: "map(select(.tag_name | contains(\"beta\"))) | .[0].tag_name | sub(\"^v\"; \"\")"
url-query: ".[] | select(.tag_name==\"v\" + $version ).assets[] | select(.name==\"Ferdium-linux-\" + $version + \"-amd64.deb\") | .browser_download_url"
- type: file
only-arches:
- aarch64
url: https://github.com/ferdium/ferdium-app/releases/download/v6.0.0-nightly.66/ferdium_6.0.0-nightly.66_arm64.deb
sha256: 7c89c2219d252b71b846f409d3f014d3e26ade1b4930b7e48a7f95dc7949063b
x-checker-data:
type: json
url: https://api.github.com/repos/ferdium/ferdium-app/releases
version-query: "map(select(.tag_name | contains(\"beta\"))) | .[0].tag_name | sub(\"^v\"; \"\")"
url-query: ".[] | select(.tag_name==\"v\" + $version ).assets[] | select(.name==\"Ferdium-linux-\" + $version + \"-arm64.deb\") | .browser_download_url"
- type: file
url: https://github.com/ferdium/ferdium-app/archive/refs/tags/v6.0.0-nightly.66.tar.gz
sha256: a1bea71d54eb568823c21c07f312437a0b69063b1bfa2384cbf58ea0384fcdcd
x-checker-data:
type: json
url: https://api.github.com/repos/ferdium/ferdium-app/releases
version-query: "map(select(.tag_name | contains(\"beta\"))) | .[0].tag_name | sub(\"^v\"; \"\")"
url-query: ".[] | select(.tag_name==\"v\" + $version ).assets[] | select(.name==\"Ferdium-linux-\" + $version + \".tar.gz\") | .browser_download_url"
- type: script
dest-filename: ferdium.sh
commands:
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
- exec zypak-wrapper /app/Ferdium/ferdium "$@"
- type: file
path: org.ferdium.Ferdium.metainfo.xml