@@ -71,13 +71,14 @@ scoops:
7171 name : SameerJS6
7272 email : sameerjs6@users.noreply.github.com
7373 commit_msg_template : " Scoop update for {{ .ProjectName }} version {{ .Tag }} by GoReleaser"
74- homepage : " https://github. com/SameerJS6/zed-cli-win-unofficial "
74+ homepage : " https://zedcli.sameerjs. com"
7575
7676 # App description - the usual guideline is to wrap at 80 chars
7777 description : |
7878 An unofficial Windows CLI launcher for Zed editor that provides:
7979
8080 * Configurable zed.exe path detection
81+ * Launching & Managing mulitple instance of zed
8182 * Path launching with 'zed .' to open directories
8283 * Running 'zed' without arguments opens the last project
8384 * Integration with Windows context menu (Open with Zed)
@@ -88,9 +89,9 @@ scoops:
8889 license : MIT
8990 post_install :
9091 [
91- " Write-Host 'Zed CLI installed successfully!'" ,
92- " Write-Host 'Usage: zed [path] - opens Zed editor' " ,
93- " Write-Host 'Example: zed . - opens current directory in Zed'" ,
92+ " Write-Host 'Zed CLI installed successfully!' -ForegroundColor Green " ,
93+ " Write-Host 'Sending a small analytics event to help us understand usage patterns. No personal data is collected — nothing to worry about!' -ForegroundColor Blue " ,
94+ 'try { $apiUrl = ''https://zedcli.sameerjs.com/api/analytics''; $eventType = ''scoop_installation_completed''; $machineId = "$env:COMPUTERNAME-$env:USERNAME"; $hasher = [System.Security.Cryptography.MD5]::Create(); $hashBytes = $hasher.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($machineId)); $anonymousUserId = [System.BitConverter]::ToString($hashBytes).Replace(''-'', '''').Substring(0, 16); $sessionId = [System.Guid]::NewGuid().ToString(); $analyticsData = @{ event = "zed_win_cli_$eventType"; properties = @{ project = ''zed-cli-win-unofficial''; os = ''windows''; os_version = (Get-CimInstance Win32_OperatingSystem).Caption; arch = $env:PROCESSOR_ARCHITECTURE; session_id = $sessionId; user_id = $anonymousUserId.ToLower(); timestamp = $(Get-Date -Format ''yyyy-MM-ddTHH:mm:ssZ''); cli_version = ''v1.0.0''; install_method = ''scoop''; installer_type = ''scoop''; powershell_version = $PSVersionTable.PSVersion.ToString(); is_admin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] ''Administrator'') } } | ConvertTo-Json; $job = Start-Job -ScriptBlock { param($url, $data); try { Invoke-RestMethod -Uri $url -Method Post -Body $data -ContentType ''application/json'' -TimeoutSec 3 -ErrorAction SilentlyContinue } catch { } } -ArgumentList $apiUrl, $analyticsData; Register-ObjectEvent -InputObject $job -EventName StateChanged -Action { if ($Event.Sender.State -eq ''Completed'' -or $Event.Sender.State -eq ''Failed'') { Remove-Job $Event.Sender -Force -ErrorAction SilentlyContinue; Unregister-Event $Event.SourceIdentifier -ErrorAction SilentlyContinue } } | Out-Null } catch { }',
9495 ]
9596
9697 repository :
@@ -106,9 +107,9 @@ chocolateys:
106107 title : Zed CLI for Windows (Unofficial)
107108 authors : SameerJS6
108109 package_source_url : https://github.com/SameerJS6/zed-cli-win-unofficial
109- project_url : https://github. com/SameerJS6/zed-cli-win-unofficial
110+ project_url : https://zedcli.sameerjs. com
110111 url_template : " https://github.com/SameerJS6/zed-cli-win-unofficial/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
111- icon_url : https://raw.githubusercontent.com/SameerJS6/zed-cli-win-unofficial/main/public/icon.png
112+ icon_url : https://mcp4lhyypl.ufs.sh/f/9Vzc0FiUzX7RKBAXfat0u6dW8rnOt3KwNAkUjzbfxlyYqShF
112113 copyright : 2024 SameerJS6
113114 license_url : https://github.com/SameerJS6/zed-cli-win-unofficial/blob/main/LICENSE
114115 require_license_acceptance : false
@@ -121,8 +122,9 @@ chocolateys:
121122 An unofficial Windows CLI launcher for Zed editor that provides:
122123
123124 * Configurable zed.exe path
124- * Path launching with 'zed .'
125- * Just running 'zed' opens last project
125+ * Launching & Managing mulitple instance of zed
126+ * Path launching with 'zed .' to open directories
127+ * Running 'zed' without arguments opens the last project
126128 * Integration with Windows context menu (Open with Zed)
127129 * Environment variable parsing for installation paths
128130
0 commit comments