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
238 stars 52 forks source link

Rewrite policyJSON Generation #91

Closed rougegoat closed 10 months ago

rougegoat commented 11 months ago

Rewrite the policyJSON generation steps to reduce duplicate code and make it easier for admins to modify future releases.

This approach splits each potential step into a separate variable. Those are then combined into the policyJSON values for each option, allowing you to only edit one time if you need to change an icon, policy trigger, validation step, etc.

Additionally, adding some dedicated space that admins can rely on being there so they can quickly copy/paste previously built steps between each release of SYM. This should reduce how much work has to be done with each new version released.

dan-snelson commented 11 months ago

Thanks, @rougegoat; let's chat post-JNUC.

dan-snelson commented 10 months ago

Happy "JNUC" Wednesday, @rougegoat!

First, thanks for your patience.

At your leisure, will you please take a squint at SYM-Helper and advise your thoughts about this PR?

rougegoat commented 10 months ago

SYM-Helper is a much better solution than my PR.