Skip to content

Commit

Permalink
vscode-server: Add version 7f6ab5485bbc008386c4386d08766667e155244e
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash258 committed Oct 2, 2021
1 parent ed50b7a commit 4b58fbd
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions bucket/vscode-server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"version": "7f6ab5485bbc008386c4386d08766667e155244e",
"description": "Automatic vscode server installation. For vms preparation.",
"homepage": "https://code.visualstudio.com/docs/remote/remote-overview",
"license": "Proprietary",
"architecture": {
"64bit": {
"url": "https://az764295.vo.msecnd.net/stable/7f6ab5485bbc008386c4386d08766667e155244e/vscode-server-win32-x64.zip",
"hash": "1e5009982868e2b6a937433566729f68c3c50fbeea90e705179872a3e46d68e2"
}
},
"pre_install": [
"try { Get-Command 'Test-Persistence' -ErrorAction 'Stop' | Out-Null } catch { error 'Shovel flavour of scoop is required'; exit 258 }",
"Rename-Item \"$dir\\$($fname -replace '\\.zip')\" $version",
"$bin = Join-Path $env:USERPROFILE '.vscode-server\\bin'",
"Confirm-DirectoryExistence $bin | Out-Null",
"if ($env:__VSS_Install -and $env:__VSS_Install -eq 1) {",
" if (Join-Path $bin $version | Test-Path -PathType 'Container') {",
" Write-UserMessage \"Server with version '$version' already exists\" -Warning",
" } else {",
" Write-UserMessage \"Installing server to '$bin'\" -Info",
" Move-Item \"$dir\\$version\" $bin",
" }",
"}"
],
"pre_uninstall": [
"if ($purge) {",
" Write-UserMessage \"Removing server installation from '$env:USERPROFILE\\.vscode-server\\bin\\$version'\" -Info",
" Remove-Item \"$env:USERPROFILE\\.vscode-server\\bin\\$version\" -Force -Recurse",
"}"
],
"checkver": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[0].version"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://az764295.vo.msecnd.net/stable/$version/vscode-server-win32-x64.zip"
}
}
}
}

0 comments on commit 4b58fbd

Please sign in to comment.