From 9d17e5106f75f475b307ff9640b81a7757cffdbe Mon Sep 17 00:00:00 2001 From: Yaser Hsueh Date: Tue, 3 Jan 2023 22:39:33 +0800 Subject: [PATCH] WindowsTerminal: Add version 1.15.3465.0 --- bucket/windows-terminal.json | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 bucket/windows-terminal.json diff --git a/bucket/windows-terminal.json b/bucket/windows-terminal.json new file mode 100644 index 0000000..a859ba7 --- /dev/null +++ b/bucket/windows-terminal.json @@ -0,0 +1,53 @@ +{ + "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" + } +}