Skip to content

Instantly share code, notes, and snippets.

@kkbruce
Last active December 26, 2023 12:09
Show Gist options
  • Save kkbruce/834c4fffa4500fc58a76038446cad9b8 to your computer and use it in GitHub Desktop.
Save kkbruce/834c4fffa4500fc58a76038446cad9b8 to your computer and use it in GitHub Desktop.
Auto save and setup offline Windows Terminal app
# 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