app-id: com.visualstudio.code default-branch: stable runtime: org.freedesktop.Sdk runtime-version: '21.08' sdk: org.freedesktop.Sdk base: org.electronjs.Electron2.BaseApp base-version: '21.08' command: code tags: [proprietary] separate-locales: false finish-args: - --require-version=0.10.3 - --share=ipc - --socket=x11 - --socket=pulseaudio - --socket=ssh-auth - --share=network - --device=all - --filesystem=xdg-config/gtk-3.0 - --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 - --env=LD_LIBRARY_PATH=/app/lib - --env=ZYPAK_SPAWN_LATEST_ON_REEXEC=0 - --filesystem=xdg-config/kdeglobals:ro - --talk-name=com.canonical.AppMenu.Registrar - --talk-name=com.canonical.AppMenu.Registrar.* - --system-talk-name=org.freedesktop.login1 add-extensions: com.visualstudio.code.tool: directory: tools subdirectories: true version: '21.08' add-ld-path: lib no-autodownload: true cleanup: - /include - /lib/pkgconfig - /share/gtk-doc - '*.la' modules: - shared-modules/libsecret/libsecret.json - shared-modules/libusb/libusb.json - name: vscode buildsystem: simple build-commands: - install -D code.sh /app/bin/code - install -Dm644 vscode_64.png /app/share/icons/hicolor/64x64/apps/com.visualstudio.code.png - install -Dm644 vscode_128.png /app/share/icons/hicolor/128x128/apps/com.visualstudio.code.png - install -Dm644 vscode_256.png /app/share/icons/hicolor/256x256/apps/com.visualstudio.code.png - install -Dm644 vscode_512.png /app/share/icons/hicolor/512x512/apps/com.visualstudio.code.png - install -Dm644 com.visualstudio.code.metainfo.xml -t /app/share/metainfo - install -Dm644 com.visualstudio.code.desktop -t /app/share/applications - install -Dm644 com.visualstudio.code-url-handler.desktop -t /app/share/applications - install -Dm644 com.visualstudio.code-workspace.xml -t /app/share/mime/packages - install -Dm644 npmrc -t /app/etc - install -Dm644 flatpak-warning.txt -t /app/share/vscode - install -D apply_extra -t /app/bin - cp /usr/bin/ar /app/bin - ARCH_TRIPLE=$(gcc --print-multiarch) && cp /usr/lib/${ARCH_TRIPLE}/libbfd-*.so /app/lib - ARCH_TRIPLE=$(gcc --print-multiarch) && ln -s /usr/lib/${ARCH_TRIPLE}/libtinfo.so/app/lib/libtinfo.so.5 - mkdir /app/tools sources: - type: script dest-filename: apply_extra commands: - ar x code.deb - tar xf data.tar.xz - mv usr/share/code vscode - rm -r code.deb control.tar.* data.tar.xz debian-binary usr - type: file path: code.sh - type: file path: flatpak-warning.txt - type: file path: npmrc - type: file path: com.visualstudio.code.metainfo.xml - type: file path: com.visualstudio.code.desktop - type: file path: com.visualstudio.code-url-handler.desktop - type: file path: com.visualstudio.code-workspace.xml - type: file path: icons/vscode_64.png - type: file path: icons/vscode_128.png - type: file path: icons/vscode_256.png - type: file path: icons/vscode_512.png - type: extra-data filename: code.deb only-arches: [x86_64] url: https://packages.microsoft.com/repos/code/pool/main/c/code/code_1.67.2-1652812855_amd64.deb sha256: 0d01848bfac9cef3a9d28c1e27453d6914fc04564310aaa8af5320a624f1a31a size: 82685224 x-checker-data: type: debian-repo package-name: code root: https://packages.microsoft.com/repos/code dist: stable component: main is-main-source: true - type: extra-data filename: code.deb only-arches: [aarch64] url: https://packages.microsoft.com/repos/code/pool/main/c/code/code_1.67.2-1652811872_arm64.deb sha256: 642d903071de3ec342a310dd99e1e1652dfe4d18a7d4e7a075e8533c5237cd79 size: 75714692 x-checker-data: type: debian-repo package-name: code root: https://packages.microsoft.com/repos/code dist: stable component: main - name: kerberos subdir: src post-install: - install -Dm644 ../krb5.conf /app/etc/krb5.conf sources: - type: archive url: https://kerberos.org/dist/krb5/1.19/krb5-1.19.2.tar.gz sha256: 10453fee4e3a8f8ce6129059e5c050b8a65dab1c257df68b99b3112eaa0cdf6a - type: file path: krb5.conf - name: zypak sources: - type: git url: https://github.com/refi64/zypak tag: v2022.03 commit: 8424c6bcf909ca2031ebc6537d324bb64772266e