-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.gopeed.Gopeed.yaml
57 lines (56 loc) · 1.75 KB
/
com.gopeed.Gopeed.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
app-id: com.gopeed.Gopeed
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
rename-icon: gopeed
rename-desktop-file: gopeed.desktop
command: gopeed
finish-args:
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --share=network
- --device=dri
- --talk-name=org.kde.StatusNotifierWatcher
# https://github.com/miguelpruivo/flutter_file_picker/pull/1275
- --filesystem=xdg-download
cleanup:
- '*.a'
- '*.la'
- /include
- /lib/cmake
- /lib/pkgconfig
- /man
- /share/man
- /share/gtk-doc
modules:
- shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json
- name: gopeed
buildsystem: simple
build-commands:
- bsdtar --to-stdout -xf gopeed.deb data.* | bsdtar -xf -
- mv opt/gopeed /app/
- cp -a usr/share /app/
- chmod +x /app/gopeed/gopeed
- install -Dm755 gopeed.sh /app/bin/gopeed
- install -Dm644 com.gopeed.Gopeed.metainfo.xml -t /app/share/metainfo
sources:
- type: file
url: https://github.com/GopeedLab/gopeed/releases/download/v1.6.1/Gopeed-v1.6.1-linux-amd64.deb
dest-filename: gopeed.deb
sha256: b44f8cf88dba9197087a037540fe92dfed8207818fd6ffa3452a14cabacf4541
x-checker-data:
type: json
url: https://api.github.com/repos/GopeedLab/gopeed/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: >-
.assets[] | select(.name=="Gopeed-v" + $version + "-linux-amd64.deb")
|
.browser_download_url
- type: file
path: com.gopeed.Gopeed.metainfo.xml
- type: script
commands:
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
- /app/gopeed/gopeed
dest-filename: gopeed.sh