Add support for Granola (Windows) including winget input, installer/uninstaller scripts, and output metadata. Added ee/maintained-apps/inputs/winget/granola.json plus install/uninstall PowerShell scripts, and new ee/maintained-apps/outputs/granola/windows.json containing version 7.128.0, installer URL and script refs (with SHA256). Also register Granola in ee/maintained-apps/outputs/apps.json and update the frontend icon and website app image assets for Granola.
27 lines
629 B
PowerShell
27 lines
629 B
PowerShell
# Learn more about .exe install scripts:
|
|
# http://fleetdm.com/learn-more-about/exe-install-scripts
|
|
|
|
$exeFilePath = "${env:INSTALLER_PATH}"
|
|
|
|
try {
|
|
# Granola uses a Nullsoft installer:
|
|
# - /S for silent installation
|
|
# - /currentuser for per-user installs
|
|
$processOptions = @{
|
|
FilePath = "$exeFilePath"
|
|
ArgumentList = "/S /currentuser"
|
|
PassThru = $true
|
|
Wait = $true
|
|
}
|
|
|
|
$process = Start-Process @processOptions
|
|
$exitCode = $process.ExitCode
|
|
|
|
Write-Host "Install exit code: $exitCode"
|
|
Exit $exitCode
|
|
}
|
|
catch {
|
|
Write-Host "Error: $_"
|
|
Exit 1
|
|
}
|