Skip to content

Commit 5347a16

Browse files
committed
Add ClaudeDesktop #167
1 parent 4051ec4 commit 5347a16

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

Apps/Get-ClaudeDesktop.ps1

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
}

Manifests/ClaudeDesktop.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
}

0 commit comments

Comments
 (0)