{ "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", "--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/v7.9.0/node-v7.9.0.tar.xz", "sha256": "a569764b884929f31a0772600a5cf36048ad42aa8c54ba4cabea6c067ef96a29" } ] }, { "name": "vscode", "buildsystem": "simple", "build-commands": [ "install apply_extra /app/bin", "install code.sh /app/bin/code", "cp /usr/bin/ar /app/bin", "install -Dm644 com.visualstudio.code.appdata.xml /app/share/appdata/com.visualstudio.code.appdata.xml", "install -m644 npmrc /app/etc" ], "cleanup": [ "/share/lintian", "/share/pixmaps" ], "sources": [ { "type": "script", "dest-filename": "apply_extra", "commands": [ "ar x code.deb", "rm -f code.deb", "tar -xf data.tar.xz", "rm -f control.tar.xz data.tar.xz debian-binary", "mv usr/* .", "rmdir usr", "install -Dm644 share/pixmaps/code.png export/share/icons/hicolor/512x512/apps/com.visualstudio.code.png", "install -Dm644 share/applications/code.desktop export/share/applications/com.visualstudio.code.desktop", "desktop-file-edit --set-key=Exec --set-value='code %F' export/share/applications/com.visualstudio.code.desktop", "desktop-file-edit --set-key=Icon --set-value='com.visualstudio.code' export/share/applications/com.visualstudio.code.desktop" ] }, { "type": "script", "commands": ["exec env PATH=\"$PATH:$XDG_DATA_HOME/node_modules/bin\" /app/extra/share/code/bin/code --extensions-dir=$XDG_DATA_HOME/vscode/extensions"], "dest-filename": "code.sh" }, { "type": "file", "path": "npmrc" }, { "type": "file", "path": "com.visualstudio.code.appdata.xml" }, { "type": "extra-data", "filename": "code.deb", "only-arches": ["x86_64"], "url": "https://go.microsoft.com/fwlink/?LinkID=760868", "sha256": "2df0d828a3b845bdea77fe6f6ecae9aa2a622161dfdb25d33f7dec032b44433a", "size": 45385688 }, { "type": "extra-data", "filename": "code.deb", "only-arches": ["i386"], "url": "https://go.microsoft.com/fwlink/?LinkID=760680", "sha256": "456fa02bff8cf43ab07d81d2bec8985da9e83958db8121f27099e6172d24a78c", "size": 46205612 } ] } ] }