Skip to content

Commit

Permalink
update: vscode
Browse files Browse the repository at this point in the history
version 1.53.2 -> 1.63.2
  • Loading branch information
gaojr committed Jan 18, 2022
1 parent d730d14 commit 0134c64
Showing 1 changed file with 55 additions and 62 deletions.
117 changes: 55 additions & 62 deletions bucket/vscode.json
@@ -1,78 +1,71 @@
{
"version": "1.53.2",
"version": "1.63.2",
"description": "Lightweight but powerful source code editor",
"homepage": "https://code.visualstudio.com/",
"license": {
"identifier": "Freeware",
"url": "https://code.visualstudio.com/License/"
"identifier": "Freeware",
"url": "https://code.visualstudio.com/License/"
},
"notes": "Add Visual Studio Code as a context menu option by running: \"$dir\\vscode-install-context.reg\"",
"notes": [
"Add Visual Studio Code as a context menu option by running: '$dir\\install-context.reg'",
"For file associations, run '$dir\\install-associations.reg'"
],
"architecture": {
"64bit": {
"url": [
"https://vscode-update.azurewebsites.net/1.53.2/win32-x64-archive/stable#/dl.7z",
"https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/vscode-install-context.reg",
"https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/vscode-uninstall-context.reg"
],
"hash": [
"5ba6e44bb04572b8c4ce8b82ad1f8a775e8fa49e062edc6b0153633977adc1fe",
"b65d66860d9ccc18bfb05237b03e06db0d6c574be3d4b946c2a5e6865c08cb28",
"df2a5162e72e2518e2b75b4337c8e7b46c136554872af90fa0de1cf6ebef376f"
]
},
"32bit": {
"url": [
"https://vscode-update.azurewebsites.net/1.53.2/win32-archive/stable#/dl.7z",
"https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/vscode-install-context.reg",
"https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/vscode-uninstall-context.reg"
],
"hash": [
"4a9680d89d76e79573d6203e1dc71eb7fb4fb25cd20c1ce213dd3aca58e530c4",
"b65d66860d9ccc18bfb05237b03e06db0d6c574be3d4b946c2a5e6865c08cb28",
"df2a5162e72e2518e2b75b4337c8e7b46c136554872af90fa0de1cf6ebef376f"
]
}
"64bit": {
"url": "https://update.code.visualstudio.com/1.63.2/win32-x64-archive/stable#/dl.7z",
"hash": "5d3c75fe622afd170871a1357820e49c89a06c5684e51f7994e4be622b07d9fe"
},
"32bit": {
"url": "https://update.code.visualstudio.com/1.63.2/win32-archive/stable#/dl.7z",
"hash": "8199f4c65a765e2cf405d8fbe4a0cd54d3cbbe0c2ff46b4785028d962fe1f455"
}
},
"bin": [["bin\\code.cmd", "code"]],
"env_add_path": "bin",
"shortcuts": [["code.exe", "Visual Studio Code"]],
"post_install": [
"if (Test-Path \"$dir\\vscode-install-context.reg\") {",
" $codepath = \"$dir\\Code.exe\".Replace('\\', '\\\\')",
" $content = Get-Content \"$dir\\vscode-install-context.reg\"",
" $content = $content.Replace('$code', $codepath)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" $content | Set-Content -Path \"$dir\\vscode-install-context.reg\"",
"}",
"if (Test-Path \"$dir\\vscode-uninstall-context.reg\") {",
" $content = Get-Content \"$dir\\vscode-uninstall-context.reg\"",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" $content | Set-Content -Path \"$dir\\vscode-uninstall-context.reg\"",
"}"
"$dirpath = \"$dir\".Replace('\\', '\\\\')",
"$exepath = \"$dir\\Code.exe\".Replace('\\', '\\\\')",
"'install-associations', 'uninstall-associations', 'install-context', 'uninstall-context' | ForEach-Object {",
" if (Test-Path \"$bucketsdir\\extras\\scripts\\vscode\\$_.reg\") {",
" $content = Get-Content \"$bucketsdir\\extras\\scripts\\vscode\\$_.reg\"",
" $content = $content.Replace('$codedir', $dirpath)",
" $content = $content.Replace('$code', $exepath)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" $content | Set-Content -Path \"$dir\\$_.reg\"",
" }",
"}",
"if (!(Test-Path \"$dir\\data\\extensions\") -and (Test-Path \"$env:USERPROFILE\\.vscode\\extensions\")) {",
" info '[Portable Mode] Copying extensions...'",
" Copy-Item \"$env:USERPROFILE\\.vscode\\extensions\" \"$dir\\data\" -Recurse",
"}",
"if (!(Test-Path \"$dir\\data\\user-data\") -and (Test-Path \"$env:AppData\\Code\")) {",
" info '[Portable Mode] Copying user data...'",
" Copy-Item \"$env:AppData\\Code\" \"$dir\\data\\user-data\" -Recurse",
"}"
],
"persist": "data",
"checkver": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-x64-archive')].name"
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-x64-archive')].name"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://vscode-update.azurewebsites.net/$version/win32-x64-archive/stable#/dl.7z",
"hash": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-x64-archive')].sha256hash"
}
},
"32bit": {
"url": "https://vscode-update.azurewebsites.net/$version/win32-archive/stable#/dl.7z",
"hash": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-archive')].sha256hash"
}
"architecture": {
"64bit": {
"url": "https://update.code.visualstudio.com/$version/win32-x64-archive/stable#/dl.7z",
"hash": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-x64-archive')].sha256hash"
}
},
"32bit": {
"url": "https://update.code.visualstudio.com/$version/win32-archive/stable#/dl.7z",
"hash": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-archive')].sha256hash"
}
}
}
}
}
}

0 comments on commit 0134c64

Please sign in to comment.