File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ function Get-ClaudeDesktop {
2+ <#
3+ . SYNOPSIS
4+ Get the current version and download URL for Claude Desktop.
5+
6+ . NOTES
7+ Site: https://stealthpuppy.com
8+ Author: Aaron Parker
9+ #>
10+ [OutputType ([System.Management.Automation.PSObject ])]
11+ [CmdletBinding (SupportsShouldProcess = $false )]
12+ param (
13+ [Parameter (Mandatory = $false , Position = 0 )]
14+ [ValidateNotNull ()]
15+ [System.Management.Automation.PSObject ]
16+ $res = (Get-FunctionResource - AppName (" $ ( $MyInvocation.MyCommand ) " .Split(" -" ))[1 ])
17+ )
18+
19+ # Get latest version and download latest release via update API
20+ foreach ($Uri in $res.Get.Update.Uri ) {
21+ $params = @ {
22+ Uri = $Uri
23+ UserAgent = $script :resourceStrings.UserAgent.Base
24+ }
25+ $Update = Invoke-EvergreenRestMethod @params
26+ if ($null -ne $Update ) {
27+
28+ # Output the object to the pipeline
29+ [PSCustomObject ] @ {
30+ Version = $Update.version
31+ Architecture = Get-Architecture - String $Update.url
32+ Type = Get-FileType - File $Update.url
33+ URI = $Update.url
34+ }
35+ }
36+ }
37+ }
Original file line number Diff line number Diff line change 1+ {
2+ "Name" : " Claude Desktop" ,
3+ "Source" : " https://support.claude.com/en/articles/12622703-deploy-claude-desktop-for-windows" ,
4+ "Get" : {
5+ "Update" : {
6+ "Uri" : [
7+ " https://claude.ai/api/desktop/win32/x64/msix/latest/" ,
8+ " https://claude.ai/api/desktop/win32/arm64/msix/latest/"
9+ ],
10+ "ContentType" : " application/json; charset=utf-8"
11+ },
12+ "Download" : {
13+ "Uri" : {
14+ "x64" : " https://claude.ai/api/desktop/win32/x64/msix/latest/redirect" ,
15+ "arm64" : " https://claude.ai/api/desktop/win32/arm64/msix/latest/redirect"
16+ }
17+ }
18+ },
19+ "Install" : {
20+ "Setup" : " ClaudeDesktopSetup.*.msi" ,
21+ "Physical" : {
22+ "Arguments" : " --silent" ,
23+ "PostInstall" : []
24+ },
25+ "Virtual" : {
26+ "Arguments" : " --silent" ,
27+ "PostInstall" : []
28+ }
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments