From d306658dd3b74cef89fac3eecc267228e26bb5bd Mon Sep 17 00:00:00 2001 From: "D. Can Celasun" Date: Fri, 14 Dec 2018 17:53:13 +0100 Subject: [PATCH] [visual-studio-code-insiders] URI handler support See https://github.com/Microsoft/vscode/pull/56727 See https://github.com/Microsoft/vscode/pull/63750 --- visual-studio-code-insiders/.SRCINFO | 20 +++++++++++-------- visual-studio-code-insiders/PKGBUILD | 17 +++++++++------- ...l-studio-code-insiders-url-handler.desktop | 12 +++++++++++ .../visual-studio-code-insiders.desktop | 3 +-- 4 files changed, 35 insertions(+), 17 deletions(-) create mode 100644 visual-studio-code-insiders/visual-studio-code-insiders-url-handler.desktop diff --git a/visual-studio-code-insiders/.SRCINFO b/visual-studio-code-insiders/.SRCINFO index feb885d6..b0b27b7f 100644 --- a/visual-studio-code-insiders/.SRCINFO +++ b/visual-studio-code-insiders/.SRCINFO @@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Mon Dec 3 18:44:31 UTC 2018 +# Fri Dec 14 16:50:35 UTC 2018 pkgbase = visual-studio-code-insiders pkgdesc = Editor for building and debugging modern web and cloud applications (insiders version) - pkgver = 1543817840 + pkgver = 1544768411 pkgrel = 1 url = https://code.visualstudio.com/ arch = x86_64 @@ -23,14 +23,18 @@ pkgbase = visual-studio-code-insiders depends = lsof provides = vscode provides = visualstudiocode - source_x86_64 = code_x64_1543817840.tar.gz::https://vscode-update.azurewebsites.net/latest/linux-x64/insider + source_x86_64 = code_x64_1544768411.tar.gz::https://vscode-update.azurewebsites.net/latest/linux-x64/insider source_x86_64 = visual-studio-code-insiders.desktop - sha256sums_x86_64 = SKIP - sha256sums_x86_64 = 21ad1e09a7fd4f877485fc584c798b8f9ac953a97662562540b9b5009c86f1b3 - source_i686 = code_ia32_1543817840.tar.gz::https://vscode-update.azurewebsites.net/latest/linux-ia32/insider + source_x86_64 = visual-studio-code-insiders-url-handler.desktop + sha256sums_x86_64 = dce3dcd83de7246b830b10f50e4b7a3fd654312a28556a40dd52fa4cde295892 + sha256sums_x86_64 = 9c015c6f6d1611e9609fb06db553db5186c4ce8d1f0bc1c6085f577e092d9d9b + sha256sums_x86_64 = d87b1f9f6187fe2d401424f109a7254d6f185f9ff433a4e6d60feed6e5ace6f8 + source_i686 = code_ia32_1544768411.tar.gz::https://vscode-update.azurewebsites.net/latest/linux-ia32/insider source_i686 = visual-studio-code-insiders.desktop - sha256sums_i686 = SKIP - sha256sums_i686 = 21ad1e09a7fd4f877485fc584c798b8f9ac953a97662562540b9b5009c86f1b3 + source_i686 = visual-studio-code-insiders-url-handler.desktop + sha256sums_i686 = 2bfe917d84485b61516291c23ccc6be0220fab4673bd68bec63909b6e2557c33 + sha256sums_i686 = 9c015c6f6d1611e9609fb06db553db5186c4ce8d1f0bc1c6085f577e092d9d9b + sha256sums_i686 = d87b1f9f6187fe2d401424f109a7254d6f185f9ff433a4e6d60feed6e5ace6f8 pkgname = visual-studio-code-insiders diff --git a/visual-studio-code-insiders/PKGBUILD b/visual-studio-code-insiders/PKGBUILD index 86b7aee0..d39bd5a8 100644 --- a/visual-studio-code-insiders/PKGBUILD +++ b/visual-studio-code-insiders/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: D. Can Celasun pkgname=visual-studio-code-insiders -pkgver=1543817840 +pkgver=1544768411 pkgrel=1 pkgdesc="Editor for building and debugging modern web and cloud applications (insiders version)" arch=('x86_64' 'i686') @@ -10,15 +10,17 @@ license=('custom: commercial') provides=('vscode' 'visualstudiocode') depends=(fontconfig libxtst gtk3 python cairo alsa-lib gconf nss gcc-libs libnotify libxss gvfs lsof) source_x86_64=(code_x64_${pkgver}.tar.gz::https://vscode-update.azurewebsites.net/latest/linux-x64/insider - ${pkgname}.desktop + ${pkgname}.desktop ${pkgname}-url-handler.desktop ) source_i686=(code_ia32_${pkgver}.tar.gz::https://vscode-update.azurewebsites.net/latest/linux-ia32/insider - ${pkgname}.desktop + ${pkgname}.desktop ${pkgname}-url-handler.desktop ) -sha256sums_x86_64=('SKIP' - '21ad1e09a7fd4f877485fc584c798b8f9ac953a97662562540b9b5009c86f1b3') -sha256sums_i686=('SKIP' - '21ad1e09a7fd4f877485fc584c798b8f9ac953a97662562540b9b5009c86f1b3') +sha256sums_x86_64=('dce3dcd83de7246b830b10f50e4b7a3fd654312a28556a40dd52fa4cde295892' + '9c015c6f6d1611e9609fb06db553db5186c4ce8d1f0bc1c6085f577e092d9d9b' + 'd87b1f9f6187fe2d401424f109a7254d6f185f9ff433a4e6d60feed6e5ace6f8') +sha256sums_i686=('2bfe917d84485b61516291c23ccc6be0220fab4673bd68bec63909b6e2557c33' + '9c015c6f6d1611e9609fb06db553db5186c4ce8d1f0bc1c6085f577e092d9d9b' + 'd87b1f9f6187fe2d401424f109a7254d6f185f9ff433a4e6d60feed6e5ace6f8') pkgver() { if [ "${CARCH}" = "x86_64" ]; then IFS='/' read -ra ADDR <<< $(curl -ILs -o /dev/null -w %{url_effective} https://vscode-update.azurewebsites.net/latest/linux-x64/insider); echo "${ADDR[5]}" | sed 's/code-insider-//g' | sed 's/.tar.gz//g' | sed 's/-/./g' @@ -41,6 +43,7 @@ package() { install -m644 "${srcdir}/${_pkg}/resources/app/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -m644 "${srcdir}/${_pkg}/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/icons/${pkgname}.png" install -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + install -m644 "${srcdir}/${pkgname}-url-handler.desktop" "${pkgdir}/usr/share/applications/${pkgname}-url-handler.desktop" cp -r "${srcdir}/${_pkg}/"* "${pkgdir}/opt/${pkgname}" -R ln -s /opt/${pkgname}/bin/code-insiders "${pkgdir}"/usr/bin/code-insiders diff --git a/visual-studio-code-insiders/visual-studio-code-insiders-url-handler.desktop b/visual-studio-code-insiders/visual-studio-code-insiders-url-handler.desktop new file mode 100644 index 00000000..bffe65ca --- /dev/null +++ b/visual-studio-code-insiders/visual-studio-code-insiders-url-handler.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=Visual Studio Code Insiders - URL Handler +Comment=Editor for building and debugging modern web and cloud applications +GenericName=Text Editor +Exec=/opt/visual-studio-code-insiders/code-insiders --open-url %U +Icon=visual-studio-code-insiders +Type=Application +NoDisplay=true +StartupNotify=true +Categories=Development;WebDevelopment;IDE;Utility;TextEditor; +MimeType=x-scheme-handler/vscode-insiders +Keywords=vscode; diff --git a/visual-studio-code-insiders/visual-studio-code-insiders.desktop b/visual-studio-code-insiders/visual-studio-code-insiders.desktop index 588b9dfb..f3a5e44e 100644 --- a/visual-studio-code-insiders/visual-studio-code-insiders.desktop +++ b/visual-studio-code-insiders/visual-studio-code-insiders.desktop @@ -6,6 +6,5 @@ Type=Application Name=Visual Studio Code Insiders Comment=Editor for building and debugging modern web and cloud applications Categories=Development;WebDevelopment;IDE;Utility;TextEditor; +MimeType=text/plain;inode/directory; StartupNotify=true -StartupWMClass=code - insiders -Name[en_US]=Visual Studio Code Insiders