forked from flathub/rest.insomnia.Insomnia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrest.insomnia.Insomnia.yml
75 lines (73 loc) · 3.2 KB
/
rest.insomnia.Insomnia.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
app-id: rest.insomnia.Insomnia
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '22.08'
separate-locales: false
command: insomnia
rename-icon: insomnia
rename-desktop-file: insomnia.desktop
finish-args:
- --socket=x11
- --socket=wayland
- --share=network
- --device=dri
modules:
- name: unappimage
buildsystem: simple
build-commands:
- make -C squashfs-tools -j ${FLATPAK_BUILDER_N_JOBS} install INSTALL_DIR=/app/bin
sources:
- type: git
url: https://github.com/refi64/unappimage
commit: d7f86f2a0d7ec3a69211125207d5f127386b849a
- name: insomnia
buildsystem: simple
build-commands:
- unappimage insomnia.AppImage
- rm insomnia.AppImage
- install -Dm755 insomnia.sh /app/bin/insomnia
- install -dm755 /app/share/applications
- sed -e 's|Exec=AppRun|Exec=/app/bin/insomnia|' squashfs-root/insomnia.desktop
> /app/share/applications/insomnia.desktop
- install -Dm644 squashfs-root/usr/share/icons/hicolor/512x512/apps/insomnia.png
-t /app/share/icons/hicolor/512x512/apps
- install -Dm644 squashfs-root/usr/share/icons/hicolor/256x256/apps/insomnia.png
-t /app/share/icons/hicolor/256x256/apps
- install -Dm644 squashfs-root/usr/share/icons/hicolor/128x128/apps/insomnia.png
-t /app/share/icons/hicolor/128x128/apps
- install -Dm644 squashfs-root/usr/share/icons/hicolor/64x64/apps/insomnia.png
-t /app/share/icons/hicolor/64x64/apps
- install -Dm644 squashfs-root/usr/share/icons/hicolor/32x32/apps/insomnia.png
-t /app/share/icons/hicolor/32x32/apps
- install -Dm644 squashfs-root/usr/share/icons/hicolor/16x16/apps/insomnia.png
-t /app/share/icons/hicolor/16x16/apps
- install -Dm644 rest.insomnia.Insomnia.appdata.xml -t /app/share/metainfo/
- mv squashfs-root /app/main/
sources:
- type: file
dest-filename: insomnia.AppImage
only-arches:
- x86_64
url: https://github.com/Kong/insomnia/releases/download/core%402023.5.7/Insomnia.Core-2023.5.7.AppImage
sha256: 001cc3fced0f0b91530ee8d2c94b88c6152f355b5781dfa2788b3afc1a15e38f
x-checker-data:
type: json
url: https://api.github.com/repos/Kong/insomnia/releases
version-query: map(select(.prerelease == false)) | map(select(.tag_name
| startswith("core@"))) | first | .tag_name | sub("core@"; "")
timestamp-query: map(select(.prerelease == false)) | map(select(.tag_name
| startswith("core@"))) | first | .published_at
url-query: '"https://github.com/Kong/insomnia/releases/download/core%40"
+ $version + "/Insomnia.Core-" + $version + ".AppImage"'
- type: script
dest-filename: insomnia.sh
commands:
# Share a TMPDIR, so that multiple instance can figure out there's
# already one running.
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
# This script is required to work around a lack of SUID sandbox helper:
- exec zypak-wrapper /app/main/insomnia "$@"
- type: file
path: rest.insomnia.Insomnia.appdata.xml