Skip to content

Instantly share code, notes, and snippets.

@nedrichards
Last active January 31, 2018 16:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nedrichards/a0463a1b1a3fb959a75b37effedf824c to your computer and use it in GitHub Desktop.
Save nedrichards/a0463a1b1a3fb959a75b37effedf824c to your computer and use it in GitHub Desktop.
sample teamviewer extra-data manifest
{
"app-id": "com.teamviewer.TeamViewer",
"runtime": "org.kde.Platform",
"runtime-version": "5.9",
"sdk": "org.kde.Sdk",
"command": "teamviewer",
"separate-locales": false,
"tags": ["proprietary"],
"finish-args": [
"--share=ipc", "--socket=x11",
"--socket=wayland",
"--socket=pulseaudio",
"--share=network",
"--device=dri",
"--filesystem=home",
"--allow=devel"
],
"modules": [
{
"name": "teamviewer",
"buildsystem": "simple",
"build-commands": [
"install -Dm755 apply_extra /app/bin/apply_extra",
"install -Dm755 teamviewer.sh /app/bin/teamviewer",
"install -Dm644 com.teamviewer.TeamViewer.appdata.xml /app/share/appdata/com.teamviewer.TeamViewer.appdata.xml"
],
"sources" : [
{
"type": "script",
"dest-filename": "apply_extra",
"commands": [
"tar xf teamviewer.tar.xz",
"rm -f teamviewer.tar.xz",
"mv teamviewer teamviewer-29c0",
"mv teamviewer-29c0/* .",
"chmod -R a-s,go+rX,go-w .",
"rmdir teamviewer-29c0",
"mkdir -p export/share/applications",
"sed 's|Icon=TeamViewer|Icon=com.teamviewer.TeamViewer|; s|Exec=/opt/teamviewer/tv_bin/script/teamviewer|Exec=teamviewer|' tv_bin/desktop/com.teamviewer.TeamViewer.desktop > export/share/applications/com.teamviewer.TeamViewer.desktop",
"mkdir -p export/share/icons/hicolor/256x256/apps",
"cp tv_bin/desktop/teamviewer_256.png export/share/icons/hicolor/256x256/apps/com.teamviewer.TeamViewer.png"
]
},
{
"type": "script",
"dest-filename": "teamviewer.sh",
"commands": ["exec /app/extra/teamviewer \"$@\""]
},
{
"type": "file",
"path": "com.teamviewer.TeamViewer.appdata.xml"
},
{
"type": "extra-data",
"filename": "teamviewer.tar.xz",
"only-arches": ["x86_64"],
"url": "https://download.teamviewer.com/download/linux/teamviewer_amd64.tar.xz",
"sha256": "29c09dd50ff480f0d6a7ae4f0ee3b50ee17109587104fac8613fc527eb26ae2b",
"size": 9316708
},
{
"type": "extra-data",
"filename": "teamviewer.tar.xz",
"only-arches": ["i386"],
"url": "https://download.teamviewer.com/download/linux/teamviewer_i386.tar.xz",
"sha256": "39a2cb1e8e8a16830acda25f1235aa1304436c0ca9104b3991f99d5256528961",
"size": 9258092
}
]
}
]
}
@alexcraft611
Copy link

don't give up ! We need a desktop remote server ! thanks for your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment