{ "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/v8.11.2/node-v8.11.2.tar.xz", "sha256": "539946c0381809576bed07424a35fc1740d52f4bd56305d6278d9e76c88f4979" } ] }, { "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.25.1/linux-x64/stable", "sha256": "5856bbebf38aa05d584da4722869bbe507cf123f69f7ffab5f1532d73dbf3438", "size": 71669633 }, { "type": "extra-data", "filename": "code.tar.gz", "only-arches": ["i386"], "url": "https://vscode-update.azurewebsites.net/1.25.1/linux-ia32/stable", "sha256": "af6adc2e2500e50bfebe7ee7b97d661b6e774a590136bf5f89334132a5b292e2", "size": 72608871 } ] } ] }