Files
dev.commandline.waveterm/com.visualstudio.code.json
T
2019-01-12 22:39:24 +01:00

136 lines
4.8 KiB
JSON

{
"app-id": "com.visualstudio.code",
"branch": "stable",
"base": "org.electronjs.Electron2.BaseApp",
"base-version": "18.08",
"runtime": "org.freedesktop.Sdk",
"runtime-version": "18.08",
"sdk": "org.freedesktop.Sdk",
"command": "code",
"tags": ["proprietary"],
"separate-locales": false,
"finish-args": [
"--share=ipc", "--socket=x11",
"--socket=pulseaudio",
"--require-version=0.10.3",
"--socket=ssh-auth",
"--share=network",
"--device=dri",
"--filesystem=host",
"--allow=devel",
"--talk-name=org.freedesktop.Notifications",
"--talk-name=org.freedesktop.secrets",
"--talk-name=org.freedesktop.Flatpak",
"--env=NPM_CONFIG_GLOBALCONFIG=/app/etc/npmrc",
"--filesystem=xdg-config/kdeglobals:ro",
"--talk-name=com.canonical.AppMenu.Registrar",
"--talk-name=com.canonical.AppMenu.Registrar.*"
],
"modules": [
{
"name": "libsecret",
"config-opts": [
"--disable-manpages",
"--disable-gtk-doc",
"--disable-static",
"--disable-introspection"
],
"cleanup": [
"/bin",
"/include",
"/lib/pkgconfig",
"/share/gtk-doc",
"*.la"
],
"sources": [
{
"type": "archive",
"url": "http://ftp.gnome.org/pub/GNOME/sources/libsecret/0.18/libsecret-0.18.5.tar.xz",
"sha256": "9ce7bd8dd5831f2786c935d82638ac428fa085057cc6780aba0e39375887ccb3"
},
{
"type": "shell",
"commands": ["autoreconf -f"]
}
]
},
{
"name": "vscode",
"buildsystem": "simple",
"build-commands": [
"cp /usr/bin/ar /app/bin",
"ARCH_TRIPLE=$(gcc --print-multiarch) && cp /usr/lib/${ARCH_TRIPLE}/libbfd-*.so /app/lib",
"install -Dt /app/bin apply_extra code",
"install -Dm644 com.visualstudio.code-64.png /app/share/icons/hicolor/64x64/apps/com.visualstudio.code.png",
"install -Dm644 com.visualstudio.code-128.png /app/share/icons/hicolor/128x128/apps/com.visualstudio.code.png",
"install -Dm644 com.visualstudio.code-256.png /app/share/icons/hicolor/256x256/apps/com.visualstudio.code.png",
"install -Dm644 com.visualstudio.code-512.png /app/share/icons/hicolor/512x512/apps/com.visualstudio.code.png",
"install -Dm644 -t /app/share/metainfo com.visualstudio.code.appdata.xml",
"install -Dm644 -t /app/share/applications com.visualstudio.code.desktop",
"install -Dm644 npmrc /app/etc/npmrc"
],
"sources": [
{
"type": "script",
"dest-filename": "apply_extra",
"commands": [
"ar x code.deb",
"tar -xf data.tar.xz",
"mv usr/share/code vscode",
"rm -rf code.deb control.tar.gz data.tar.gz debian-binary usr"
]
},
{
"type": "script",
"commands": ["exec env PATH=\"$PATH:$XDG_DATA_HOME/node_modules/bin\" /app/extra/vscode/bin/code --extensions-dir=$XDG_DATA_HOME/vscode/extensions \"$@\""],
"dest-filename": "code"
},
{
"type": "file",
"path": "npmrc"
},
{
"type": "file",
"path": "com.visualstudio.code.appdata.xml"
},
{
"type": "file",
"path": "com.visualstudio.code.desktop"
},
{
"type": "file",
"path": "com.visualstudio.code-512.png"
},
{
"type": "file",
"path": "com.visualstudio.code-256.png"
},
{
"type": "file",
"path": "com.visualstudio.code-128.png"
},
{
"type": "file",
"path": "com.visualstudio.code-64.png"
},
{
"type": "extra-data",
"filename": "code.deb",
"only-arches": ["x86_64"],
"url": "https://vscode-update.azurewebsites.net/1.30.2/linux-deb-x64/stable",
"sha256": "d5169bba57279be8ea86fc18aa5d488390eeb80330c97c0d33101b21da45b246",
"size": 45911916
},
{
"type": "extra-data",
"filename": "code.deb",
"only-arches": ["i386"],
"url": "https://vscode-update.azurewebsites.net/1.30.2/linux-deb-ia32/stable",
"sha256": "bb9d7a0d9d23ae4de3eb8026f48a57fdd1024de0d84d23347780b7d3f2329ab5",
"size": 48230658
}
]
}
]
}