-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.storyapps.starc.yml
47 lines (47 loc) · 2 KB
/
dev.storyapps.starc.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
app-id: dev.storyapps.starc
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
command: starc-run
separate-locales: false
finish-args:
- --socket=x11
- --socket=wayland
- --share=ipc
- --filesystem=xdg-documents:rw
# Needs sound to play optional typewriter sounds
- --socket=pulseaudio
- --share=network
- --device=dri
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
modules:
- name: starc
buildsystem: simple
build-commands:
- chmod +x starc-setup.AppImage
- ./starc-setup.AppImage --appimage-extract
- rm starc-setup.AppImage
- cp squashfs-root/starc.desktop ${FLATPAK_ID}.desktop
- cp squashfs-root/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png ${FLATPAK_ID}.png
- cp squashfs-root/share/metainfo/${FLATPAK_ID}.metainfo.xml ${FLATPAK_ID}.metainfo.xml
- desktop-file-edit --set-icon ${FLATPAK_ID} --set-key Exec --set-value 'starc-run
%u' ${FLATPAK_ID}.desktop
- install -Dm644 ${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications
- install -Dm644 ${FLATPAK_ID}.png -t ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps
- install -Dm644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo
- install -Dm755 starc-run -t ${FLATPAK_DEST}/bin
- mv squashfs-root ${FLATPAK_DEST}/bin/starc
sources:
- type: script
dest-filename: starc-run
commands:
- /app/bin/starc/starc $@
- type: file
filename: starc-setup.AppImage
url: https://github.com/story-apps/starc/releases/download/v0.5.3a/starc-setup.AppImage
sha256: 35710c38d7d6b3b06c68eefa14647c07f1f683122f177451bcd02fadf40dc5ad
x-checker-data:
type: json
url: https://api.github.com/repos/story-apps/starc/releases/latest
version-query: .tag_name
url-query: .assets[] | select(.name=="starc-setup.AppImage") | .browser_download_url