Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .chocolatey/codeshellmanager.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
<title>CodeShellManager</title>
<authors>umage.ai</authors>
<projectUrl>https://umage.ai/products/code-shell-manager/</projectUrl>
<iconUrl>https://raw.githubusercontent.com/umage-ai/CodeShellManager/ad0ea186aefc00c4d4494f04d15f5dd5492c774e/src/CodeShellManager/Assets/app.png</iconUrl>
<!-- Must be a CDN — raw.githubusercontent.com is not permitted by Chocolatey moderation.
Pinned to a commit rather than a branch so the icon can never change under a
published package. -->
<iconUrl>https://cdn.jsdelivr.net/gh/umage-ai/CodeShellManager@ad0ea186aefc00c4d4494f04d15f5dd5492c774e/src/CodeShellManager/Assets/app.png</iconUrl>
<copyright>Copyright (c) 2025 umage.ai</copyright>
<licenseUrl>https://github.com/umage-ai/CodeShellManager/blob/main/LICENSE</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
36 changes: 36 additions & 0 deletions .chocolatey/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,42 @@ $checksum64 = '__CHECKSUM64__'

$logPath = "$env:TEMP\$packageName.$env:chocolateyPackageVersion.MsiInstall.log"

# CodeShellManager renders its terminals in WebView2, so the Evergreen Runtime is a hard
# requirement at run time. It ships with Windows 11 and with recent Windows 10, so this
# WARNS rather than fails: a missing runtime is worth telling the user about, but a
# detection miss must not block an install that would have worked.
#
# Deliberately a check and not a <dependency> on webview2-runtime — that would pull and
# install the runtime on every machine, including the majority that already have it.
$wv2Clients = @(
'HKLM:\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}'
'HKLM:\SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}'
'HKCU:\SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}'
)
$wv2Version = $null
foreach ($key in $wv2Clients) {
try {
$pv = (Get-ItemProperty -Path $key -Name pv -ErrorAction Stop).pv
if ($pv -and $pv -ne '0.0.0.0') { $wv2Version = $pv; break }
} catch { }
}

if ($wv2Version) {
Write-Host "Microsoft Edge WebView2 Runtime detected (version $wv2Version)."
} else {
Write-Warning @'
Microsoft Edge WebView2 Runtime was not detected.

CodeShellManager renders its terminals in WebView2 and will not display them without it.
It is included with Windows 11 and recent Windows 10 builds; if terminals appear blank
after install, get the Evergreen Runtime from:

https://developer.microsoft.com/en-us/microsoft-edge/webview2/

or run: choco install webview2-runtime
'@
}

$packageArgs = @{
packageName = $packageName
unzipLocation = $toolsDir
Expand Down