forked from flathub/com.github.ransome1.sleek
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcom.github.ransome1.sleek.yml
More file actions
61 lines (61 loc) · 2.6 KB
/
Copy pathcom.github.ransome1.sleek.yml
File metadata and controls
61 lines (61 loc) · 2.6 KB
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
app-id: com.github.ransome1.sleek
runtime: org.freedesktop.Platform
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '25.08'
command: sleek
finish-args:
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --device=dri
- --share=network
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.FileChooser
# Tray icon on Wayland
- --talk-name=org.kde.StatusNotifierWatcher
# Ensure correct cursor size on Wayland
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
sdk-extensions:
- org.freedesktop.Sdk.Extension.node20
modules:
- name: sleek
buildsystem: simple
build-commands:
- ar x com.github.ransome1.sleek.deb
- tar -xf data.tar.* -C /app
- find /app/opt/sleek/ -exec chmod -R a-s,go+rX,go-w {} \;
- install -Dm755 sleek-entrypoint.sh /app/bin/sleek
- install -Dm644 ./build/128x128.png /app/share/icons/hicolor/128x128/apps/com.github.ransome1.sleek.png
- install -Dm644 ./build/256x256.png /app/share/icons/hicolor/256x256/apps/com.github.ransome1.sleek.png
- install -Dm644 ./build/512x512.png /app/share/icons/hicolor/512x512/apps/com.github.ransome1.sleek.png
- install -Dm644 flatpak/com.github.ransome1.sleek.desktop /app/share/applications/com.github.ransome1.sleek.desktop
- install -Dm644 flatpak/com.github.ransome1.sleek.appdata.xml /app/share/metainfo/com.github.ransome1.sleek.appdata.xml
sources:
- type: git
url: https://github.com/ransome1/sleek.git
commit: 4d7c318763510e1fa52fe7b4fce13406833f2453
- type: script
dest-filename: sleek-entrypoint.sh
commands:
- |
#!/bin/bash
export TMPDIR="${XDG_CACHE_HOME:-/tmp}"
if [ -n "$WAYLAND_DISPLAY" ] && [ "$XDG_SESSION_TYPE" = "wayland" ]; then
exec zypak-wrapper /app/opt/sleek/sleek --ozone-platform=wayland "$@"
else
exec zypak-wrapper /app/opt/sleek/sleek "$@"
fi
- type: file
dest-filename: com.github.ransome1.sleek.deb
url: https://github.com/ransome1/sleek/releases/download/v2.0.26/sleek-2.0.26-linux-arm64.deb
sha256: d3a2ee9115690632be268aaa490b001fe213d899d974f4a3fce220df3eede1cc
only-arches:
- aarch64
- type: file
dest-filename: com.github.ransome1.sleek.deb
url: https://github.com/ransome1/sleek/releases/download/v2.0.26/sleek-2.0.26-linux-amd64.deb
sha256: f2531c41b70c04bbafc27af83e195aa9268845a58d3ead4b58fa58b301223fcb
only-arches:
- x86_64