New arguments and speed improvements - Version 1.1.4#33
Merged
Mac-Nerd merged 24 commits intoMac-Nerd:1.1.3from Sep 24, 2025
Skinflint:1.1.4
Merged
New arguments and speed improvements - Version 1.1.4#33Mac-Nerd merged 24 commits intoMac-Nerd:1.1.3from Skinflint:1.1.4
Mac-Nerd merged 24 commits intoMac-Nerd:1.1.3from
Skinflint:1.1.4
Conversation
Added arguments to get the version of the script, update the installomator and patchomator scripts if they need updated, and to set a script proxy if necessary. Changed the version check of the app labels to use 'is-at-least'. Rearranged installomator check and added a fatal check if installomator is not installed and the script is being run in install mode. Created some arrays for the labels to not require a second lookup if needed. Added a script check to the verifyApp function. If the script is installed from GitHub it downloads the latest pkg or the version installed pkg and does an md5 file check and a spctl or pkgutil check for expectedTeamID. Added a summary after the appVerify that will let the user know how many of the apps that were found need updates. Only available if not in quiet mode. Miscellaneous cleanup mostly involving tabs and spaces.
Need to set all options from the install check before reading from the config file if it exists
Add a new array to fix the required apps not being the label assigned to the application.
Only use dialog if not in quiet mode, and fix quoting bug for the required labels.
Updated the DialogPath and added a line to remove the file
Get the installomator exit status into a variable.
Moved the echo of quit for the dialog log file to the finishAndExit function to remove extra lines.
Added a check that the dialog log file is writable and created after it is removed. Moved the finishandexit out of the display config function.
Allow Discovery and install mode at the same time
Update readme for new switches and updated command output.
Fixed some issues around the replacement of apps if not using --yes. It was adding extra unique apps and not removing from the update list.
Remove the item from the appNeedsUpdates tally if it is being replaced with a different label
Added some cleanup for if the scripts ends improperly. Also added caffeinate to the discovery.
Use the installedLabelsList instead of labelsList for the queuedLabelsArray, and remove teh @s/ / so that an empty array doesn't add a blank and give a count of 1.
Continue on ALL instead of break so that if there is a list of ignores on the command line, it can remove them from the install list.
Add a lockfile that includes the running PID to prevent the script from being ran if it is already running.
Get patchomatorPATH with fallback to default location.
Mac-Nerd
reviewed
Jul 18, 2025
Mac-Nerd
reviewed
Jul 18, 2025
Mac-Nerd
reviewed
Jul 18, 2025
Mac-Nerd
reviewed
Jul 18, 2025
Changed RECOMMENDEDIGNORES to RECOMMENDED. Changed the output of fullversion to closer match Installomator. Fixed the proxy help text.
Update for recommended list
Fixed and issue where quotes were not the same between reading from the config file and reading from the command line.
Added timeout for label replacement prompts and included a prompt via Swift Dialog. Default 120, can be set via --timeout (10-9000) Added the --icon argument for setting the Swift Dialog icon. Fixed the moveable argument for Swift Dialog to allow the command to be moved around. Revamped the config file logic. Added MDM option to set the Logos. More settings can be added in the future to that logic in the future. Revamped the CLIOptions to allow for them to overwrite default options, and made all default options get pushed to Installomator even if CLIOptions exists.
Update Timeout and IAMROOT logic Add timeout and dialog prompt for Installomator install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added arguments to get the version of the script, update the installomator and patchomator scripts if they need updated, set a script proxy if necessary, and to use SPCTL instead of codesign if needing more verification on apps.
Changed the version check of the app labels to use 'is-at-least'.
Rearranged installomator check and added a fatal check if installomator is not installed and the script is being run in install mode.
Created some arrays for the labels to not require a second lookup if needed.
Added a script check to the verifyApp function. If the script is installed from GitHub it downloads the latest pkg or the version installed pkg and does an md5 file check and a spctl or pkgutil check for expectedTeamID.
Added a summary after the appVerify that will let the user know how many of the apps that were found need updates. Only available if not in quiet mode.
Updated the DialogPath and added a line to remove the file. Also added more quiet mode checks for dialog.
Added a lock file to prevent the script from running if it is already running. It also checks that file for the PID in case the file is there but the script isn't already running.
Added a trap for the code if the script exits abnormally. It will kill the caffeinate and dialog processes.
The script now runs discovery before installs. It will check the appversion of the found apps and only send ones that need updates to installomator. If discovery wants to be skipped, then you will need to use the --ignored "all" command.
Updates to the readme.md
Miscellaneous cleanup mostly involving tabs and spaces.