mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-12 10:19:09 +08:00
47ca689678
opt: add application and polkit opt: add polkit
49 lines
1.6 KiB
JSON
49 lines
1.6 KiB
JSON
{
|
|
"id": "com.rustdesk.RustDesk",
|
|
"runtime": "org.freedesktop.Platform",
|
|
"runtime-version": "21.08",
|
|
"sdk": "org.freedesktop.Sdk",
|
|
"command": "rustdesk",
|
|
"icon": "share/rustdesk/files/rustdesk.png",
|
|
"modules": [
|
|
"shared-modules/libappindicator/libappindicator-gtk3-12.10.json",
|
|
"xdotool.json",
|
|
{
|
|
"name": "rustdesk",
|
|
"buildsystem": "simple",
|
|
"build-commands": [
|
|
"bsdtar -zxvf rustdesk-1.2.0.deb",
|
|
"tar -xvf ./data.tar.xz",
|
|
"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",
|
|
"for size in 16 24 32 48 64 128 256 512; do\n rsvg-convert -w $size -h $size -f png -o $size.png logo.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",
|
|
"path": "../rustdesk-1.2.0.deb"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"path": "../res/logo.svg"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"finish-args": [
|
|
"--share=ipc",
|
|
"--socket=x11",
|
|
"--socket=fallback-x11",
|
|
"--socket=wayland",
|
|
"--share=network",
|
|
"--filesystem=home",
|
|
"--device=dri",
|
|
"--socket=pulseaudio",
|
|
"--talk-name=org.freedesktop.Flatpak"
|
|
]
|
|
}
|