diff --git a/bucket/VisualStudioCode-Install.json b/bucket/VisualStudioCode-Install.json index 8f4b5c1865..cc6b001de8 100644 --- a/bucket/VisualStudioCode-Install.json +++ b/bucket/VisualStudioCode-Install.json @@ -1,64 +1,64 @@ { - "##": "Download url https://code.visualstudio.com/download#", - "version": "1.80.2", - "description": "Visual Studio Code. is a lightweight but powerful source code editor.", - "homepage": "https://code.visualstudio.com/", - "license": { - "identifier": "Freeware", - "url": "https://code.visualstudio.com/License/" - }, - "changelog": "https://code.visualstudio.com/updates/v1_80", - "architecture": { - "64bit": { - "url": "https://code.visualstudio.com/sha/download?build=stable&os=win32-x64#/setup.exe", - "hash": "422ac1f2c5bd8ec3e40eee77a536d4f9cad3544eaefe52bf5151f25aac2f6eab" + "##": "Download url https://code.visualstudio.com/download#", + "version": "1.80.2", + "description": "Visual Studio Code. is a lightweight but powerful source code editor.", + "homepage": "https://code.visualstudio.com/", + "license": { + "identifier": "Freeware", + "url": "https://code.visualstudio.com/License/" }, - "32bit": { - "url": "https://code.visualstudio.com/sha/download?build=stable&os=win32#/setup.exe", - "hash": "beec623dcccfa779032768a439d2332912bdc0ffe9ac01947cc441f17905045e" - } - }, - "pre_download": "Assert-Administrator", - "pre_install": [ - "$processname = \"Code\"", - "$process = Get-Process $processname -ErrorAction SilentlyContinue", - "if ($process) {", - " $process.CloseMainWindow()", - " Start-Sleep -Seconds 5", - " if (!$process.HasExited) {", - " Start-Sleep -Seconds 25", - " $process | Stop-Process -Force", - " }", - "}" - ], - "installer": { - "script": [ - "$programname = \"Microsoft Visual Studio Code\"", - "$ProgramFiles = [Environment]::GetFolderPath(\"ProgramFiles\")", - "$filepath = \"$ProgramFiles\\Microsoft VS Code\\Code.exe\"", - "if(((Test-Path -Path $filepath -PathType Leaf) -eq $false) -or ((Get-Command $filepath).Version -lt [System.Version]\"$version\"))", - "{", - " &\"$dir\\setup.exe\" /VERYSILENT /MERGETASKS=!runcode,!desktopicon,!quicklaunchicon,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath | Out-Null", - " if(((Test-Path -Path $filepath -PathType Leaf) -eq $false) -or ((Get-Command $filepath).Version -lt [System.Version]\"$version\"))", - " {", - " exit 1", - " }", - "}", - "if (Test-Path -Path \"$dir\\setup.exe\") { Remove-Item \"$dir\\setup.exe\" -Force }" - ] - }, - "checkver": { - "github": "https://github.com/microsoft/vscode" - }, - "autoupdate": { - "changelog": "https://code.visualstudio.com/updates/v$majorVersion_$minorVersion", + "changelog": "https://code.visualstudio.com/updates/v1_80", "architecture": { - "64bit": { - "url": "https://code.visualstudio.com/sha/download?build=stable&os=win32-x64#/setup.exe" - }, - "32bit": { - "url": "https://code.visualstudio.com/sha/download?build=stable&os=win32#/setup.exe" - } + "64bit": { + "url": "https://code.visualstudio.com/sha/download?build=stable&os=win32-x64#/setup.exe", + "hash": "99408c51d4d10232cb240b24a486814c9b50e96fdac6be600f1fe777cd49f4ca" + }, + "32bit": { + "url": "https://code.visualstudio.com/sha/download?build=stable&os=win32#/setup.exe", + "hash": "36b5bd557c39baaa8121945477ec9566174c9a3e6dbc7716ba1f8ac6e98dbfc1" + } + }, + "pre_download": "Assert-Administrator", + "pre_install": [ + "$processname = \"Code\"", + "$process = Get-Process $processname -ErrorAction SilentlyContinue", + "if ($process) {", + " $process.CloseMainWindow()", + " Start-Sleep -Seconds 5", + " if (!$process.HasExited) {", + " Start-Sleep -Seconds 25", + " $process | Stop-Process -Force", + " }", + "}" + ], + "installer": { + "script": [ + "$programname = \"Microsoft Visual Studio Code\"", + "$ProgramFiles = [Environment]::GetFolderPath(\"ProgramFiles\")", + "$filepath = \"$ProgramFiles\\Microsoft VS Code\\Code.exe\"", + "if(((Test-Path -Path $filepath -PathType Leaf) -eq $false) -or ((Get-Command $filepath).Version -lt [System.Version]\"$version\"))", + "{", + " &\"$dir\\setup.exe\" /VERYSILENT /MERGETASKS=!runcode,!desktopicon,!quicklaunchicon,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath | Out-Null", + " if(((Test-Path -Path $filepath -PathType Leaf) -eq $false) -or ((Get-Command $filepath).Version -lt [System.Version]\"$version\"))", + " {", + " exit 1", + " }", + "}", + "if (Test-Path -Path \"$dir\\setup.exe\") { Remove-Item \"$dir\\setup.exe\" -Force }" + ] + }, + "checkver": { + "github": "https://github.com/microsoft/vscode" + }, + "autoupdate": { + "changelog": "https://code.visualstudio.com/updates/v$majorVersion_$minorVersion", + "architecture": { + "64bit": { + "url": "https://code.visualstudio.com/sha/download?build=stable&os=win32-x64#/setup.exe" + }, + "32bit": { + "url": "https://code.visualstudio.com/sha/download?build=stable&os=win32#/setup.exe" + } + } } - } -} \ No newline at end of file +}