-
Notifications
You must be signed in to change notification settings - Fork 1
/
io.beekeeperstudio.Studio.yml
81 lines (71 loc) · 3.69 KB
/
io.beekeeperstudio.Studio.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
76
77
78
79
80
81
app-id: io.beekeeperstudio.Studio
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
command: beekeeper-studio
rename-icon: beekeeper-studio
finish-args:
- --device=dri
- --share=ipc
- --share=network
- --socket=wayland
- --socket=fallback-x11
- --talk-name=org.freedesktop.Notifications
modules:
- name: beekeeper-studio
buildsystem: simple
build-commands:
- chmod +x Beekeeper-Studio.AppImage
- ./Beekeeper-Studio.AppImage --appimage-extract
- rm Beekeeper-Studio.AppImage
- desktop-file-edit --set-icon ${FLATPAK_ID} --set-key Exec --set-value 'beekeeper-studio
%u' squashfs-root/beekeeper-studio.desktop
- install -Dm644 squashfs-root/beekeeper-studio.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- install -Dm755 beekeeper-studio.sh ${FLATPAK_DEST}/bin/beekeeper-studio
- install -Dm644 io.beekeeperstudio.Studio.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm644 squashfs-root/usr/share/mime/beekeeper-studio.xml ${FLATPAK_DEST}/share/mime/packages/${FLATPAK_ID}.xml
- rm squashfs-root/usr/share/mime/beekeeper-studio.xml
- mkdir -p ${FLATPAK_DEST}/share/icons/hicolor
- cp -r squashfs-root/usr/share/icons/hicolor/* ${FLATPAK_DEST}/share/icons/hicolor
# flatpak doesn't support icons lareger than 512x512
- rm -rf ${FLATPAK_DEST}/share/icons/hicolor/1024x1024
- rm -rf squashfs-root/resources/public/icons/win squashfs-root/resources/public/icons/mac
- mv squashfs-root ${FLATPAK_DEST}/beekeeper-studio
# To allow separate locales
# https://searchfox.org/mozilla-central/rev/8a4f55bc09ffc5c25dcb4586c51ae4a9fee77b4c/taskcluster/docker/firefox-flatpak/runme.sh#131-133
- |
for lang in ${FLATPAK_DEST}/beekeeper-studio/locales/*.pak
do
locale="$(basename -s .pak $lang)"
install -Dm644 -t "${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/" "$lang"
ln -sf "${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/$(basename $lang)" "${FLATPAK_DEST}/beekeeper-studio/locales/$(basename $lang)"
done
sources:
- type: file
only-arches: [x86_64]
url: https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v4.6.8/Beekeeper-Studio-4.6.8.AppImage
sha512: 822187061632e253271c4b58b82ac5cd3daf754bd457243aba931f80d4e4c498cbb915c14665513c6491548da8ead02fa5bc0fd316fa2d40ab10e2be795e85b9
dest-filename: Beekeeper-Studio.AppImage
x-checker-data:
type: json
url: https://api.github.com/repos/beekeeper-studio/beekeeper-studio/releases/latest
version-query: .tag_name | sub("v"; "")
url-query: .assets[] | select(.name == "Beekeeper-Studio-" + $version +
".AppImage") | .browser_download_url
- type: file
only-arches: [aarch64]
url: https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v4.6.2/Beekeeper-Studio-4.6.2-arm64.AppImage
sha512: d662f824eb5ec5d5db1bf8f1791fb54e07436810bcdf843c853327897a027b547e9bcfe8ebdc9b6db1220464344b0664eabc03661d78058bd4d64c2991a3433f
dest-filename: Beekeeper-Studio.AppImage
x-checker-data:
type: json
url: https://api.github.com/repos/beekeeper-studio/beekeeper-studio/releases/latest
version-query: .tag_name | sub("v"; "")
url-query: .assets[] | select(.name == "Beekeeper-Studio-" + $version +
"-arm64.AppImage") | .browser_download_url
- type: file
path: beekeeper-studio.sh
- type: file
path: io.beekeeperstudio.Studio.metainfo.xml