rustdesk/flatpak/rustdesk.json

64 lines
2.2 KiB
JSON
Raw Normal View History

{
"id": "com.rustdesk.RustDesk",
"runtime": "org.freedesktop.Platform",
2023-10-06 17:22:14 +08:00
"runtime-version": "23.08",
"sdk": "org.freedesktop.Sdk",
"command": "rustdesk",
2023-08-01 06:54:21 +08:00
"icon": "share/icons/hicolor/scalable/apps/rustdesk.svg",
"modules": [
"shared-modules/libappindicator/libappindicator-gtk3-12.10.json",
2022-11-08 16:52:45 +08:00
"xdotool.json",
{
"name": "pam",
"buildsystem": "simple",
"build-commands": [
2024-05-02 18:14:42 +08:00
"./configure --disable-selinux --prefix=/app && make -j4 install"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/linux-pam/linux-pam/releases/download/v1.3.1/Linux-PAM-1.3.1.tar.xz",
"sha256": "eff47a4ecd833fbf18de9686632a70ee8d0794b79aecb217ebd0ce11db4cd0db"
}
]
},
{
"name": "rustdesk",
"buildsystem": "simple",
"build-commands": [
2023-10-14 11:07:08 +08:00
"bsdtar -zxvf rustdesk-1.2.4.deb",
"tar -xvf ./data.tar.xz",
2023-03-05 22:00:44 +08:00
"cp -r ./usr/* /app/",
"mkdir -p /app/bin && ln -s /app/lib/rustdesk/rustdesk /app/bin/rustdesk",
"mv /app/share/applications/rustdesk.desktop /app/share/applications/com.rustdesk.RustDesk.desktop",
"sed -i '/^Icon=/ c\\Icon=com.rustdesk.RustDesk' /app/share/applications/com.rustdesk.RustDesk.desktop",
"sed -i '/^Icon=/ c\\Icon=com.rustdesk.RustDesk' /app/share/applications/rustdesk-link.desktop",
2023-08-01 06:54:21 +08:00
"mv /app/share/icons/hicolor/scalable/apps/rustdesk.svg /app/share/icons/hicolor/scalable/apps/com.rustdesk.RustDesk.svg",
"for size in 16 24 32 48 64 128 256 512; do\n rsvg-convert -w $size -h $size -f png -o $size.png scalable.svg\n install -Dm644 $size.png /app/share/icons/hicolor/${size}x${size}/apps/com.rustdesk.RustDesk.png\n done"
],
"cleanup": ["/include", "/lib/pkgconfig", "/share/gtk-doc"],
"sources": [
{
"type": "file",
2023-10-14 11:07:08 +08:00
"path": "../rustdesk-1.2.4.deb"
},
{
"type": "file",
"path": "../res/scalable.svg"
}
]
}
],
"finish-args": [
"--share=ipc",
"--socket=x11",
2022-11-08 16:52:45 +08:00
"--socket=fallback-x11",
"--socket=wayland",
"--share=network",
2022-11-08 16:52:45 +08:00
"--filesystem=home",
"--device=dri",
"--socket=pulseaudio",
"--talk-name=org.freedesktop.Flatpak"
]
}