Skip to content

Commit

Permalink
[visual-studio-code-insiders] URI handler support
Browse files Browse the repository at this point in the history
  • Loading branch information
dcelasun committed Dec 14, 2018
1 parent 2f7c2e1 commit d306658
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 17 deletions.
20 changes: 12 additions & 8 deletions visual-studio-code-insiders/.SRCINFO
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

17 changes: 10 additions & 7 deletions visual-studio-code-insiders/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: D. Can Celasun <can[at]dcc[dot]im>

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')
Expand All @@ -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'
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d306658

Please sign in to comment.