-
Notifications
You must be signed in to change notification settings - Fork 2
/
cn.lceda.LCEDAPro.yml
59 lines (52 loc) · 1.81 KB
/
cn.lceda.LCEDAPro.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
48
49
50
51
52
53
54
55
56
57
58
59
app-id: cn.lceda.LCEDAPro
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
command: lceda-pro.sh
separate-locales: false
finish-args:
- --share=ipc
- --share=network
- --socket=x11
- --device=dri
- --filesystem=xdg-documents
modules:
- name: lceda-pro
buildsystem: simple
build-commands:
- install -D -m 755 -t /app/bin/ lceda-pro.sh
- install -D -m 755 -t /app/bin/ apply_extra
- install -D -m 644 -t /app/share/icons/hicolor/512x512/apps/ cn.lceda.LCEDAPro.png
- install -D -m 644 -t /app/share/applications/ cn.lceda.LCEDAPro.desktop
- install -D -m 644 -t /app/share/metainfo/ cn.lceda.LCEDAPro.metainfo.xml
sources:
- type: script
commands:
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
- exec zypak-wrapper /app/extra/lceda-pro/lceda-pro "$@"
dest-filename: lceda-pro.sh
- type: script
commands:
- unzip -q lceda-pro.zip
- chmod +x lceda-pro/lceda-pro
- rm lceda-pro.zip *.sh *.txt
dest-filename: apply_extra
- type: file
path: cn.lceda.LCEDAPro.metainfo.xml
- type: file
path: cn.lceda.LCEDAPro.png
- type: file
path: cn.lceda.LCEDAPro.desktop
- type: extra-data
filename: lceda-pro.zip
only-arches: [x86_64]
url: https://image.lceda.cn/files/lceda-pro-linux-x64-2.2.34.5.zip
sha256: 9b35fa1feff08f949ded52dff75c329ec3c655ae410aef98a82dd9f790eb65c7
size: 332153388
x-checker-data:
type: html
url: https://lceda.cn/page/download
version-pattern: lceda-pro-linux-x64-([0-9.]+).zip
url-template: https://image.lceda.cn/files/lceda-pro-linux-x64-${version}.zip