-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathorg.flowkeeper.Flowkeeper.yaml
119 lines (104 loc) · 4.13 KB
/
org.flowkeeper.Flowkeeper.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
app-id: org.flowkeeper.Flowkeeper
runtime: org.kde.Platform
runtime-version: '6.8'
sdk: org.kde.Sdk
base: io.qt.PySide.BaseApp
base-version: '6.8'
command: run.sh
# rename-appdata-file: flowkeeper.appdata.xml
rename-desktop-file: flowkeeper.desktop
# rename-icon: flowkeeper
finish-args:
- --socket=fallback-x11
- --socket=wayland
- --share=network
- --share=ipc
- --socket=pulseaudio
- --device=dri
- --talk-name=org.kde.StatusNotifierWatcher
- --env=PYTHONPATH=/app/flowkeeper/
cleanup-commands:
- /app/cleanup-BaseApp.sh
cleanup:
- '*.a'
- /include
- /lib/cmake
- /lib/pkgconfig
- /share/man
modules:
- name: python3-pycparser
buildsystem: simple
build-commands:
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST}
pycparser
sources:
- type: file
url: https://files.pythonhosted.org/packages/1d/b2/31537cf4b1ca988837256c910a668b553fceb8f069bedc4b1c826024b52c/pycparser-2.22.tar.gz
sha256: 491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6
x-checker-data:
type: pypi
name: pycparser
- name: python3-cffi
buildsystem: simple
build-commands:
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST}
cffi
sources:
- type: file
url: https://files.pythonhosted.org/packages/b2/d5/da47df7004cb17e4955df6a43d14b3b4ae77737dff8bf7f8f333196717bf/cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sha256: b62ce867176a75d03a665bad002af8e6d54644fad99a3c70905c543130e39d93
x-checker-data:
type: pypi
name: cffi
- name: python3-cryptography
buildsystem: simple
only-arches:
- x86_64
build-commands:
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST}
cryptography
sources:
- type: file
url: https://files.pythonhosted.org/packages/ef/82/72403624f197af0db6bac4e58153bc9ac0e6020e57234115db9596eee85d/cryptography-44.0.0-cp39-abi3-manylinux_2_28_x86_64.whl
sha256: f53c2c87e0fb4b0c00fa9571082a057e37690a8f12233306161c8f4b819960b7
x-checker-data:
type: pypi
name: cryptography
- name: python3-cryptography
buildsystem: simple
only-arches:
- aarch64
build-commands:
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST}
cryptography
sources:
- type: file
url: https://files.pythonhosted.org/packages/d0/c7/c656eb08fd22255d21bc3129625ed9cd5ee305f33752ef2278711b3fa98b/cryptography-44.0.0-cp39-abi3-manylinux_2_28_aarch64.whl
sha256: c5eb858beed7835e5ad1faba59e865109f3e52b3783b9ac21e7e47dc5554e289
x-checker-data:
type: pypi
name: cryptography
- python3-modules.yaml
- name: flowkeeper
buildsystem: simple
build-commands:
- install -Dm755 run.sh /app/bin/run.sh
- desktop-file-edit --remove-key="Version" flowkeeper/installer/flowkeeper.desktop
- desktop-file-edit --set-key="Exec" --set-value="run.sh" flowkeeper/installer/flowkeeper.desktop
- desktop-file-edit --remove-key="Icon" flowkeeper/installer/flowkeeper.desktop
- install -Dm644 flowkeeper/installer/flowkeeper.desktop ${FLATPAK_DEST}/share/applications/flowkeeper.desktop
# org.flowkeeper.Flowkeeper.png is not a valid icon: Image too large (1024x1024). Max. size 512x512
# - install -Dm644 flowkeeper/res/flowkeeper.png /app/share/icons/hicolor/512x512/apps/flowkeeper.png
- cd flowkeeper/res; /lib/libexec/rcc -g python --project -o "resources.qrc"
- cd flowkeeper/res; /lib/libexec/rcc -g python "resources.qrc" -o "../src/fk/desktop/resources.py"
- mv flowkeeper/src $FLATPAK_DEST/flowkeeper
- mv flowkeeper/res $FLATPAK_DEST/flowkeeper/
sources:
- type: archive
url: https://github.com/flowkeeper-org/fk-desktop/archive/refs/tags/v0.9.0.tar.gz
dest: flowkeeper
sha256: 82f17b075096a80d5e68041ca6c97b4bcb02f121349014512af30fed1e9538f1
- type: script
commands:
- python /app/flowkeeper/fk/desktop/desktop.py "$@"
dest-filename: run.sh