-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.github.jacalz.rymdport.yml
52 lines (46 loc) · 2.76 KB
/
io.github.jacalz.rymdport.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
app-id: io.github.jacalz.rymdport
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang
command: rymdport
finish-args:
- --share=ipc # Share IPC namespace with the host (necessary for X11).
- --share=network
- --socket=x11
- --device=dri # OpenGL rendering support.
# The below are commented out until there is out of the box support for wayland.
#- --socket=fallback-x11 # Only create the x11 socket if wayland isn't avaliable.
#- --socket=wayland
# Needed to support desktop notifications.
- --talk-name=org.freedesktop.Notifications
# Support only the most common directories.
- --filesystem=home:ro
- --filesystem=xdg-download
- --filesystem=/tmp # Fix https://github.com/Jacalz/rymdport/issues/93.
build-options:
env:
- GOBIN=/app/bin
- GOROOT=/usr/lib/sdk/golang
modules:
- name: rymdport
buildsystem: simple
build-commands:
- $GOROOT/bin/go build -tags="no_emoji,no_metadata" -trimpath -buildvcs=false -ldflags="-s -w" -o rymdport
- install -Dm00755 rymdport $FLATPAK_DEST/bin/rymdport
- install -Dm00644 internal/assets/unix/$FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop
- install -Dm00644 internal/assets/unix/$FLATPAK_ID.appdata.xml $FLATPAK_DEST/share/appdata/$FLATPAK_ID.appdata.xml
- install -Dm00644 internal/assets/icons/icon-512.png $FLATPAK_DEST/share/icons/hicolor/512x512/apps/$FLATPAK_ID.png
- install -Dm00644 internal/assets/icons/icon-256.png $FLATPAK_DEST/share/icons/hicolor/256x256/apps/$FLATPAK_ID.png
- install -Dm00644 internal/assets/icons/icon-128.png $FLATPAK_DEST/share/icons/hicolor/128x128/apps/$FLATPAK_ID.png
- install -Dm00644 internal/assets/icons/icon-64.png $FLATPAK_DEST/share/icons/hicolor/64x64/apps/$FLATPAK_ID.png
- install -Dm00644 internal/assets/icons/icon-48.png $FLATPAK_DEST/share/icons/hicolor/48x48/apps/$FLATPAK_ID.png
- install -Dm00644 internal/assets/icons/icon-32.png $FLATPAK_DEST/share/icons/hicolor/32x32/apps/$FLATPAK_ID.png
- install -Dm00644 internal/assets/icons/icon-24.png $FLATPAK_DEST/share/icons/hicolor/24x24/apps/$FLATPAK_ID.png
- install -Dm00644 internal/assets/icons/icon-16.png $FLATPAK_DEST/share/icons/hicolor/16x16/apps/$FLATPAK_ID.png
- install -Dm00644 internal/assets/svg/icon.svg $FLATPAK_DEST/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg
sources:
- type: archive
url: "https://github.com/Jacalz/rymdport/releases/download/v3.7.0/rymdport-v3.7.0-vendored.tar.xz"
sha512: 8cd7c0a3b93f0f8271561db323312fededfd9d721c6f97c54947d589fc2a050f21251d2d4f196127366c26af75f20eb4324a01b51a13d7ec81385a8857f2ee64