-
Notifications
You must be signed in to change notification settings - Fork 17
/
com.getpostman.Postman.yaml
74 lines (74 loc) · 2.81 KB
/
com.getpostman.Postman.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
app-id: com.getpostman.Postman
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
command: Postman
separate-locales: false
tags:
- proprietary
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --share=network
- --device=dri
- --filesystem=home
- --talk-name=com.canonical.AppMenu.Registrar
modules:
- name: Postman
buildsystem: simple
build-commands:
- install -Dm755 apply_extra ${FLATPAK_DEST}/bin/apply_extra
- install -Dm644 logo-mark.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
- install -Dm644 -t /app/share/applications com.getpostman.Postman.desktop
- install -Dm644 -t /app/share/metainfo com.getpostman.Postman.appdata.xml
- install -Dm755 run.sh ${FLATPAK_DEST}/bin/Postman
- icon_in="${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg";
icon_out="${FLATPAK_ID}.png"; for s in {32,64,128,256,512}; do rsvg-convert
"${icon_in}" -w "${s}" -h "${s}" -a -f png -o "${icon_out}"; install -p -Dm644
"${icon_out}" -t "${FLATPAK_DEST}/share/icons/hicolor/${s}x${s}/apps/"; done;
sources:
- type: script
dest-filename: apply_extra
commands:
- tar --no-same-owner -xf Postman.tar.gz
- rm Postman.tar.gz
- mkdir -p /app/extra/Postman
- mv Postman/app/* /app/extra/Postman
- type: extra-data
only-arches:
- x86_64
url: https://dl.pstmn.io/download/version/11.27.3/linux64
sha256: 27af8c317551faf288a6089a82b4aa30fc4cd69ba851f03e4406f9a741afd364
size: 150487065
x-checker-data:
type: json
url: https://dl.pstmn.io/api/version/latest?platform=linux64&channel=stable
version-query: .version
url-query: '"https://dl.pstmn.io/download/version/\($version)/linux64"'
filename: Postman.tar.gz
- type: extra-data
only-arches:
- aarch64
url: https://dl.pstmn.io/download/version/11.27.3/linuxarm64
sha256: 2e66fa336782d91f311b9f34d892c0e662cbfb6eeb025a5d995ef169ba86b9a2
size: 150010940
x-checker-data:
type: json
url: https://dl.pstmn.io/api/version/latest?platform=linuxarm64&channel=stable
version-query: .version
url-query: '"https://dl.pstmn.io/download/version/\($version)/linuxarm64"'
filename: Postman.tar.gz
- type: script
dest-filename: run.sh
commands:
- export TMPDIR="$XDG_CACHE_HOME"
- zypak-wrapper.sh /app/extra/Postman/Postman "$@"
- type: file
path: com.getpostman.Postman.desktop
- type: file
path: com.getpostman.Postman.appdata.xml
- type: file
path: logo-mark.svg