setup-your-mac / Setup-Your-Mac

Setup Your Mac aims to simplify initial device configuration by leveraging swiftDialog and Jamf Pro Policy Custom Events to allow end-users to self-complete Mac setup post-enrollment.
https://snelson.us/sym
MIT License
249 stars 55 forks source link

Installomator progress for individual listitems #85

Closed croaker-1 closed 11 months ago

croaker-1 commented 1 year ago

The idea is to use the SwiftDialog integration in Installomator to allow Setup-Your-Mac to display download/install progress for individual list items.

Here is an example using Microsoft Teams: Setup a Microsoft Teams step in your policyJSON, with listitem matching the name variable from Installomator.sh

"listitem": "Microsoft Teams",
"icon": ...

Then add the following Installomator parameters to your install policy, making sure DIALOG_LIST_ITEM_NAME matches listitem from your policyJSON

DIALOG_LIST_ITEM_NAME="Microsoft Teams"`
DIALOG_CMD_FILE="/var/tmp/dialogCommandFileSetupYourMac"

image

This is my first pull request ever so please patient with me.

dan-snelson commented 1 year ago

Thanks, @croaker-1!

What happens for non-Installomator policies?

croaker-1 commented 1 year ago

All policies will continue get the status passed by Set-Up-Your-Mac (including Installomator policies). Installomator appends the SwiftDialog command with the listitem progress so nothing should change for non-Installomator policies.

image

Installomator uses the title attribute to update the status (as it wouldn't know the index number of the Set-Up-Your-Mac item) hence the change to dialogUpdateSetupYourMac

dan-snelson commented 11 months ago

Greetings, @croaker-1!

Today I learned that if I delete a branch to which I have associated your PR, your PR will be auto-closed; sorry about that.

(I do plan to utilize your code in SYM 2.)