Files
dev.commandline.waveterm/com.visualstudio.code.json
T
2018-09-23 19:55:57 +02:00

161 lines
5.5 KiB
JSON

{
"app-id": "com.visualstudio.code",
"branch": "stable",
"base": "io.atom.electron.BaseApp",
"base-version": "stable",
"runtime": "org.freedesktop.Sdk",
"runtime-version": "1.6",
"sdk": "org.freedesktop.Sdk",
"command": "code",
"tags": ["proprietary"],
"separate-locales": false,
"finish-args": [
"--share=ipc", "--socket=x11",
"--socket=pulseaudio",
"--share=network",
"--device=dri",
"--filesystem=host",
"--talk-name=org.freedesktop.Notifications",
"--talk-name=org.freedesktop.secrets",
"--talk-name=org.freedesktop.Flatpak",
"--env=NPM_CONFIG_GLOBALCONFIG=/app/etc/npmrc"
],
"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": "xkbfile",
"cleanup": ["/include", "/lib/*.la", "/lib/pkgconfig"],
"config-opts": ["--disable-static"],
"sources": [
{
"type": "archive",
"url": "https://www.x.org/releases/individual/lib/libxkbfile-1.0.9.tar.bz2",
"sha256": "51817e0530961975d9513b773960b4edd275f7d5c72293d5a151ed4f42aeb16a"
}
]
},
{
"name": "nodejs",
"cleanup": [
"/include",
"/share",
"/app/lib/node_modules/npm/changelogs",
"/app/lib/node_modules/npm/doc",
"/app/lib/node_modules/npm/html",
"/app/lib/node_modules/npm/man",
"/app/lib/node_modules/npm/scripts"
],
"sources": [
{
"type": "archive",
"url": "https://nodejs.org/dist/v8.11.2/node-v8.11.2.tar.xz",
"sha256": "539946c0381809576bed07424a35fc1740d52f4bd56305d6278d9e76c88f4979"
}
]
},
{
"name": "vscode",
"buildsystem": "simple",
"build-commands": [
"cp /usr/bin/ar /app/bin",
"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.27.2/linux-deb-x64/stable",
"sha256": "35aedf314a3d886e1affac8591904ba0b1ffb7e20075acabf7bfeec1fa2b6515",
"size": 45365022
},
{
"type": "extra-data",
"filename": "code.deb",
"only-arches": ["i386"],
"url": "https://vscode-update.azurewebsites.net/1.27.2/linux-deb-ia32/stable",
"sha256": "57aed7e9e9de896f9a7530c49953ad916657cbcf41d8309c35978055cf4e9159",
"size": 47703998
}
]
}
]
}