mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
This pull request adds Windows support for GIMP version 3.0.8-2 to the maintained apps. It introduces new install and uninstall scripts, updates the app metadata, and provides integration details for Fleet's package management. New GIMP Windows app integration: * App metadata: Added `gimp.json` in the `winget` inputs directory, specifying package details, installer type, architecture, and default categories. * App listing: Updated `apps.json` to include the new GIMP Windows entry with platform, slug, unique identifier, and description. Installer and uninstaller scripts: * Install script: Added `gimp_install.ps1` for silent, machine-scope installation using Inno Setup installer flags. * Uninstall script: Added `gimp_uninstall.ps1` for silent removal, including logic to locate the correct uninstaller and handle edge cases. Fleet integration and versioning: * App version definition: Created `gimp/windows.json` output file, detailing version, installer URL, install/uninstall script references, SHA256, and Fleet query for existence.
27 lines
607 B
PowerShell
27 lines
607 B
PowerShell
# Learn more about .exe install scripts:
|
|
# http://fleetdm.com/learn-more-about/exe-install-scripts
|
|
|
|
$exeFilePath = "${env:INSTALLER_PATH}"
|
|
|
|
try {
|
|
|
|
# Inno Setup installer with /ALLUSERS for machine-scope installation
|
|
$processOptions = @{
|
|
FilePath = "$exeFilePath"
|
|
ArgumentList = "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /ALLUSERS"
|
|
PassThru = $true
|
|
Wait = $true
|
|
}
|
|
|
|
# Start process and track exit code
|
|
$process = Start-Process @processOptions
|
|
$exitCode = $process.ExitCode
|
|
|
|
# Prints the exit code
|
|
Write-Host "Install exit code: $exitCode"
|
|
Exit $exitCode
|
|
|
|
} catch {
|
|
Write-Host "Error: $_"
|
|
Exit 1
|
|
}
|