-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vscode-server: Add version 7f6ab5485bbc008386c4386d08766667e155244e
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |