{ "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 -Dm755 apply_extra /app/bin/apply_extra", "install -Dm755 code.sh /app/bin/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 com.visualstudio.code.appdata.xml /app/share/appdata/com.visualstudio.code.appdata.xml", "install -Dm644 code.desktop /app/share/applications/com.visualstudio.code.desktop", "install -Dm644 npmrc /app/etc/npmrc" ], "cleanup": [ "/share/lintian", "/share/pixmaps" ], "sources": [ { "type": "script", "dest-filename": "apply_extra", "commands": [ "tar -xf code.tar.gz", "rm -f code.tar.gz", "mv VSCode-linux-* vscode", "install -Dm644 /app/share/applications/com.visualstudio.code.desktop export/share/applications/com.visualstudio.code.desktop" ] }, { "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.sh" }, { "type": "file", "path": "npmrc" }, { "type": "file", "path": "com.visualstudio.code.appdata.xml" }, { "type": "file", "path": "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.tar.gz", "only-arches": ["x86_64"], "url": "https://vscode-update.azurewebsites.net/1.20.0/linux-x64/stable", "sha256": "b3108f54755286a750d3f5e34f1644daa549fbe714f8ec85f1b9475614de138d", "size": 67737146 }, { "type": "extra-data", "filename": "code.tar.gz", "only-arches": ["i386"], "url": "https://vscode-update.azurewebsites.net/1.20.0/linux-ia32/stable", "sha256": "139068a2b6fcec93e132e53aba4e1aa7802fdaabf11b36c705bb80d598a40e52", "size": 68758682 } ] } ] }