Deploy swiftDialog on macOS with a PKG Fileset
Description
This article provides instructions on how to deploy swiftDialog usingis FileWave.an open source macOS utility that lets scripts display dialogs, progress, and prompts to the signed-in user. This recipe packages swiftDialog isas a simpleFileWave utilityPKG forFileset macOSand optionally deploys a profile that allows shell scripts to display GUI dialogs. swiftDialog is beneficial when you want to provide interactive user feedback or collect user input during a shell script's execution. By deploying swiftDialog via FileWave, administrators can efficiently distribute this utility across all managed macOS devices.notifications.
Ingredients
-
FWFileWaveAdminCentral -
swiftDialog PKG -
Releases · bartreardon/swiftDialog(github.com)releases on GitHub - Example PKG Fileset - PKG - swiftDialog.fileset.zip
- Profile Fileset to enable notifications for swiftDialog - Profile - swiftDialog - Enable Notifications.fileset.zip
Directions
Deploying swiftDialog to your Macs using FileWave
- Download the required swiftDialog PKG
from:from theReleasescurrent·GitHubbartreardon/swiftDialogreleases.(github.com)Check that release's macOS requirement before setting the Fileset compatibility range. - Create a new PKG fileset in FileWave and import the swiftDialog PKG. See the example: PKG - swiftDialog.fileset.zip
"Choose New DesktopFileset"Fileset,wasselectpicked andPKG, thenPKG and thenimport thePKGdownloadedselect.package.On Properties forIn the FilesetIproperties,madesetitthework onsupported macOS11.xrangeandtohigher.matchNewer versions ofthe swiftDialogmayrelease you downloaded. Current releases can require a newer macOS12.xversionorthanhigherolderso consider that.packages.- Additionally the script below was added to set the notification icon to be a FileWave icon. You'll see in our example Fileset that it has this as a Preflight Script. When the icon is in place before the PKG it allows the custom icon to be used.
#!/bin/zsh if [ -f "/usr/local/sbin/FileWave.app/Contents/Resources/fwGUI.app/Contents/Resources/kiosk.icns" ] then mkdir -p "/Library/Application Support/Dialog/" sips -s format png /usr/local/sbin/FileWave.app/Contents/Resources/fwGUI.app/Contents/Resources/kiosk.icns --out "/Library/Application Support/Dialog/Dialog.png" else echo "File not found: /usr/local/sbin/FileWave.app/Contents/Resources/fwGUI.app/Contents/Resources/kiosk.icns" fi exit 0
DowloadDownload Profile - swiftDialog - Enable Notifications.fileset.zip if you want toensureallow swiftDialognotifications will be seen.notifications.- Assign both swiftDialog and the swiftDialog Enable Notifications Filesets to your target macOS devices.
Related Links
- swiftDialog GitHub -
swiftDialogofficialGitHubprojectpageand documentation - acodega/dialog-scripts: Scripts to use with the awesome Dialog app https://github.com/bartreardon/Dialog
- SecondSonConsulting/swiftDialogExamples (github.com)
- Installomator - The one installer script to rule them all (macOS Script)