Skip to content

Commit

Permalink
Add Figma Desktop manifest and PowerShell script for installation #784
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronparker committed Dec 12, 2024
1 parent 52d8433 commit a7f478d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Evergreen/Apps/Get-FigmaDesktop.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
function Get-FigmaDesktop {
<#
.NOTES
Site: https://stealthpuppy.com
Author: Aaron Parker
#>
[OutputType([System.Management.Automation.PSObject])]
[CmdletBinding(SupportsShouldProcess = $false)]
param (
[Parameter(Mandatory = $false, Position = 0)]
[ValidateNotNull()]
[System.Management.Automation.PSObject]
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
)

$Content = Invoke-EvergreenRestMethod -Uri $res.Get.Update.Uri
if ($null -ne $Content) {
$object = [PSCustomObject]@{
Version = $Content.title -replace $res.Get.Update.ReplaceText, ""
Date = $Content.pubDate
URL = $Content.link
}
Write-Output -InputObject $object
}
}
21 changes: 21 additions & 0 deletions Evergreen/Manifests/FigmaDesktop.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"Name": "Figma Desktop",
"Source": "https://www.figma.com/",
"Get": {
"Update": {
"Uri": "https://desktop.figma.com/win/releases.xml",
"ReplaceText": "Figma "
}
},
"Install": {
"Setup": "",
"Physical": {
"Arguments": "",
"PostInstall": []
},
"Virtual": {
"Arguments": "",
"PostInstall": []
}
}
}

0 comments on commit a7f478d

Please sign in to comment.