-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.httpie.Httpie.yaml
89 lines (79 loc) · 3.16 KB
/
io.httpie.Httpie.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
id: io.httpie.Httpie
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
command: httpie
finish-args:
- --share=network
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
# Enable GPU acceleration as the app is very slow otherwise
- --device=dri
modules:
# ./httpie.appimage --extract-appimage doesn't work inside of Flatpak,
# so unappimage is required
- name: unappimage
buildsystem: simple
build-commands:
- make -C squashfs-tools install INSTALL_DIR=/app/bin
sources:
- type: git
url: https://github.com/refi64/unappimage
commit: d7f86f2a0d7ec3a69211125207d5f127386b849a
- name: xrandr
sources:
- sha256: 7b99edb7970a1365eaf5bcaf552144e4dfc3ccf510c4abc08569849929fb366e
type: archive
url: https://www.x.org/archive/individual/app/xrandr-1.5.1.tar.gz
- name: httpie
buildsystem: simple
sources:
- type: script
dest-filename: httpie
commands:
- zypak-wrapper.sh /app/extra/httpie/httpie --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
- type: extra-data
url: https://github.com/httpie/desktop/releases/download/v2024.1.2/HTTPie-2024.1.2.AppImage
sha256: 38e3f597b2760603b79ce3d28a9c5fc1f37f94e52c97cd14cd8301a2cc811eb3
filename: httpie.appimage
size: 103669249
only-arches: [x86_64]
x-checker-data:
type: json
url: https://api.github.com/repos/httpie/desktop/releases/latest
tag-query: .tag_name
version-query: $tag | .[1:]
timestamp-query: .published_at
url-query: .assets[] | select(.name=="HTTPie-" + $version + ".AppImage") | .browser_download_url
- type: extra-data
url: https://github.com/httpie/desktop/releases/download/v2024.1.2/HTTPie-2024.1.2-arm64.AppImage
sha256: 4612322da90290c51c5efbb4b2097932d5786175e4aaa1f55144bb6e9b54cf0c
filename: httpie.appimage
size: 104548570
only-arches: [aarch64]
x-checker-data:
type: json
url: https://api.github.com/repos/httpie/desktop/releases/latest
tag-query: .tag_name
version-query: $tag | .[1:]
timestamp-query: .published_at
url-query: .assets[] | select(.name=="HTTPie-" + $version + "-arm64.AppImage") | .browser_download_url
# apply_extra runs at the end of the installation process and extracts
# the app from the appimage file
- type: file
path: apply_extra.sh
- type: file
path: io.httpie.Httpie.desktop
- type: file
path: io.httpie.Httpie.metainfo.xml
- type: file
path: io.httpie.Httpie.png
build-commands:
- install -Dm755 ./apply_extra.sh "${FLATPAK_DEST}/bin/apply_extra"
- install -Dm755 httpie -t "${FLATPAK_DEST}/bin/"
- install -Dm644 "${FLATPAK_ID}.desktop" -t "${FLATPAK_DEST}/share/applications"
- install -Dm644 "${FLATPAK_ID}.metainfo.xml" -t "${FLATPAK_DEST}/share/metainfo"
- install -Dm644 io.httpie.Httpie.png -t "${FLATPAK_DEST}/share/icons/hicolor/512x512/apps"