Last active
December 26, 2023 12:09
-
-
Save kkbruce/834c4fffa4500fc58a76038446cad9b8 to your computer and use it in GitHub Desktop.
Auto save and setup offline Windows Terminal app
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
# reference: https://blog.darkthread.net/blog/install-winterminal-wo-internet/ | |
Write-Host "Confirm https://github.com/microsoft/terminal/releases get latest version download Url" | |
Write-Host "Running PowerShell Core runtime" | |
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; | |
Invoke-WebRequest https://github.com/microsoft/terminal/releases/download/v1.12.10393.0/Microsoft.WindowsTerminal_1.12.10393.0_8wekyb3d8bbwe.msixbundle -OutFile Microsoft.WindowsTerminal.msixbundle | |
Rename-Item .\Microsoft.WindowsTerminal.msixbundle .\Microsoft.WindowsTerminal.zip | |
Expand-Archive .\Microsoft.WindowsTerminal.zip .\WTSource\. | |
# PowerShell not support .msix extract. | |
Expand-Archive .\WTSource\CascadiaPackage_1.12.10393.0_x64.msix .\WindowsTerminal\. | |
Remove-Item .\Microsoft.WindowsTerminal.zip | |
Remove-Item .\WTSource\ -Recurse | |
Write-Host "If have any font issue message" | |
Write-Host "setup \WindowsTerminal\CascadiaMono.ttf for all use(admin)" | |
Set-Location .\WindowsTerminal\ | |
Write-Host "Run wt.exe, Welcome to terminal world." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment