54 lines
2.5 KiB
JSON
54 lines
2.5 KiB
JSON
|
{
|
||
|
"version": "1.15.3465.0",
|
||
|
"description": "The new Windows Terminal, and the original Windows console host - all in the same place!",
|
||
|
"homepage": "https://github.com/microsoft/terminal",
|
||
|
"license": "MIT",
|
||
|
"notes": "Add Windows Terminal as a context menu option by running `reg import \"$dir\\install-context.reg\"`",
|
||
|
"suggest": {
|
||
|
"vcredist": "extras/vcredist2022"
|
||
|
},
|
||
|
"url": "http://dl.simaek.com/scoop/buckets/custom/package/Microsoft.WindowsTerminal_Win10_1.15.3465.0_8wekyb3d8bbwe.msixbundle#/dl.7z",
|
||
|
"hash": "cafef84e6c40260c30f9424193736c24337b93f1413008e47964e957ec1361a3",
|
||
|
"architecture": {
|
||
|
"64bit": {
|
||
|
"pre_install": "Get-ChildItem \"$dir\" -Exclude '*x64.msix' | Remove-Item -Force -Recurse"
|
||
|
},
|
||
|
"32bit": {
|
||
|
"pre_install": "Get-ChildItem \"$dir\" -Exclude '*x86.msix' | Remove-Item -Force -Recurse"
|
||
|
}
|
||
|
},
|
||
|
"installer": {
|
||
|
"script": [
|
||
|
"$winVer = [Environment]::OSVersion.Version",
|
||
|
"if (($winver.Major -lt '10') -or ($winVer.Build -lt 18362)) { error 'At least Windows 10 19H1 (build 18362) is required.'; break }",
|
||
|
"Get-ChildItem \"$dir\" '*.msix' | Select-Object -ExpandProperty Fullname | Expand-7zipArchive -DestinationPath \"$dir\" -Removal",
|
||
|
"Get-ChildItem \"$dir\\ProfileIcons\" '*.png' | Rename-Item -NewName { $_.Name.Replace('%7B', '{').Replace('%7D', '}') }"
|
||
|
]
|
||
|
},
|
||
|
"post_install": [
|
||
|
"'install-context', 'uninstall-context' | ForEach-Object {",
|
||
|
" if (Test-Path \"$bucketsdir\\extras\\scripts\\windows-terminal\\$_.reg\") {",
|
||
|
" $wtPath = \"$dir\\wt.exe\".Replace('\\', '\\\\')",
|
||
|
" $content = (Get-Content \"$bucketsdir\\extras\\scripts\\windows-terminal\\$_.reg\").Replace('$wt', $wtPath)",
|
||
|
" if ($global) { $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE') }",
|
||
|
" Set-Content \"$dir\\$_.reg\" $content -Encoding Ascii -Force",
|
||
|
" }",
|
||
|
"}"
|
||
|
],
|
||
|
"pre_uninstall": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" }",
|
||
|
"bin": [
|
||
|
"WindowsTerminal.exe",
|
||
|
"wt.exe"
|
||
|
],
|
||
|
"shortcuts": [
|
||
|
[
|
||
|
"WindowsTerminal.exe",
|
||
|
"Windows Terminal"
|
||
|
]
|
||
|
],
|
||
|
"checkver": "github",
|
||
|
"autoupdate": {
|
||
|
"url": "https://github.com/microsoft/terminal/releases/download/v$version/Microsoft.WindowsTerminal_Win10_$version_8wekyb3d8bbwe.msixbundle#/dl.7z"
|
||
|
}
|
||
|
}
|