diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7ff639 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +macupdater-log.txt diff --git a/macupdater-admin.app/Contents/Info.plist b/macupdater-admin.app/Contents/Info.plist new file mode 100644 index 0000000..5408be3 --- /dev/null +++ b/macupdater-admin.app/Contents/Info.plist @@ -0,0 +1,109 @@ + + + + + AMIsApplet + + AMStayOpen + + BuildMachineOSBuild + 17A405001 + CFBundleAllowMixedLocalizations + + CFBundleDevelopmentRegion + English + CFBundleDocumentTypes + + + CFBundleTypeExtensions + + * + + CFBundleTypeName + Automator workflow file + CFBundleTypeOSTypes + + **** + + CFBundleTypeRole + Viewer + + + CFBundleExecutable + Application Stub + CFBundleIconFile + AutomatorApplet + CFBundleIdentifier + com.apple.automator.macupdater-admin + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + macupdater-admin + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.3 + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + MacOSX + + CFBundleURLTypes + + CFBundleVersion + 444.42 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 10P70r + DTPlatformName + macosx + DTPlatformVersion + 10.14 + DTSDKBuild + 18E203 + DTSDKName + macosx10.14internal + DTXcode + 1020 + DTXcodeBuild + 10P70r + LSMinimumSystemVersion + 10.6 + LSUIElement + + NSAppleEventsUsageDescription + This workflow needs to control other applications to run. + NSAppleMusicUsageDescription + This workflow needs access to your music to run. + NSAppleScriptEnabled + YES + NSCalendarsUsageDescription + This workflow needs access to your calendars to run. + NSCameraUsageDescription + This workflow needs access to your camera to run. + NSContactsUsageDescription + This workflow needs access to your contacts to run. + NSHomeKitUsageDescription + This workflow needs access to your HomeKit Home to run. + NSMicrophoneUsageDescription + This workflow needs access to your microphone to run. + NSPhotoLibraryUsageDescription + This workflow needs access to your photos to run. + NSPrincipalClass + NSApplication + NSRemindersUsageDescription + This workflow needs access to your reminders to run. + NSServices + + NSSiriUsageDescription + This workflow needs access to Siri to run. + NSSystemAdministrationUsageDescription + This workflow needs access to administer this system in order to run. + UTExportedTypeDeclarations + + UTImportedTypeDeclarations + + + diff --git a/macupdater-admin.app/Contents/MacOS/Application Stub b/macupdater-admin.app/Contents/MacOS/Application Stub new file mode 100755 index 0000000..040282a Binary files /dev/null and b/macupdater-admin.app/Contents/MacOS/Application Stub differ diff --git a/macupdater-admin.app/Contents/Resources/AutomatorApplet.icns b/macupdater-admin.app/Contents/Resources/AutomatorApplet.icns new file mode 100644 index 0000000..1e1593e Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/AutomatorApplet.icns differ diff --git a/macupdater-admin.app/Contents/Resources/ar.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ar.lproj/InfoPlist.strings new file mode 100644 index 0000000..29ccabb Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/ar.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/ca.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ca.lproj/InfoPlist.strings new file mode 100644 index 0000000..c0a6ad7 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/ca.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/cs.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/cs.lproj/InfoPlist.strings new file mode 100644 index 0000000..99fb87e Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/cs.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/da.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/da.lproj/InfoPlist.strings new file mode 100644 index 0000000..7c79f43 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/da.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/de.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/de.lproj/InfoPlist.strings new file mode 100644 index 0000000..e5b0ee9 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/de.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/el.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/el.lproj/InfoPlist.strings new file mode 100644 index 0000000..426f98c Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/el.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/en.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..5cd2271 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/en.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/en_AU.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/en_AU.lproj/InfoPlist.strings new file mode 100644 index 0000000..5cd2271 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/en_AU.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/en_GB.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/en_GB.lproj/InfoPlist.strings new file mode 100644 index 0000000..5cd2271 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/en_GB.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/es.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/es.lproj/InfoPlist.strings new file mode 100644 index 0000000..d3f3e8c Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/es.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/es_419.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/es_419.lproj/InfoPlist.strings new file mode 100644 index 0000000..caabfa4 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/es_419.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/fi.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/fi.lproj/InfoPlist.strings new file mode 100644 index 0000000..de8cd96 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/fi.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/fr.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/fr.lproj/InfoPlist.strings new file mode 100644 index 0000000..9e505c0 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/fr.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/fr_CA.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/fr_CA.lproj/InfoPlist.strings new file mode 100644 index 0000000..67c036c Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/fr_CA.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/he.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/he.lproj/InfoPlist.strings new file mode 100644 index 0000000..a501d87 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/he.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/hi.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/hi.lproj/InfoPlist.strings new file mode 100644 index 0000000..af2bf6a Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/hi.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/hr.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/hr.lproj/InfoPlist.strings new file mode 100644 index 0000000..02ad1cf Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/hr.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/hu.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/hu.lproj/InfoPlist.strings new file mode 100644 index 0000000..4433c6c Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/hu.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/id.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/id.lproj/InfoPlist.strings new file mode 100644 index 0000000..03bfb44 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/id.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/it.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/it.lproj/InfoPlist.strings new file mode 100644 index 0000000..e92bc17 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/it.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/ja.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ja.lproj/InfoPlist.strings new file mode 100644 index 0000000..1471dd9 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/ja.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/ko.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ko.lproj/InfoPlist.strings new file mode 100644 index 0000000..48fd501 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/ko.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/ms.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ms.lproj/InfoPlist.strings new file mode 100644 index 0000000..445f9db Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/ms.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/nl.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/nl.lproj/InfoPlist.strings new file mode 100644 index 0000000..9236f99 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/nl.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/no.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/no.lproj/InfoPlist.strings new file mode 100644 index 0000000..5c76487 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/no.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/pl.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/pl.lproj/InfoPlist.strings new file mode 100644 index 0000000..c07d040 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/pl.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/pt.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/pt.lproj/InfoPlist.strings new file mode 100644 index 0000000..d5f6f3e Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/pt.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/pt_PT.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/pt_PT.lproj/InfoPlist.strings new file mode 100644 index 0000000..dc78336 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/pt_PT.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/ro.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ro.lproj/InfoPlist.strings new file mode 100644 index 0000000..9f61eee Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/ro.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/ru.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ru.lproj/InfoPlist.strings new file mode 100644 index 0000000..af639b9 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/ru.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/sk.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/sk.lproj/InfoPlist.strings new file mode 100644 index 0000000..0bc2895 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/sk.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/sv.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/sv.lproj/InfoPlist.strings new file mode 100644 index 0000000..30d5503 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/sv.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/th.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/th.lproj/InfoPlist.strings new file mode 100644 index 0000000..eb56aa8 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/th.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/tr.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/tr.lproj/InfoPlist.strings new file mode 100644 index 0000000..7068230 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/tr.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/uk.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/uk.lproj/InfoPlist.strings new file mode 100644 index 0000000..e10476e Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/uk.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/vi.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/vi.lproj/InfoPlist.strings new file mode 100644 index 0000000..c2429b9 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/vi.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/zh_CN.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/zh_CN.lproj/InfoPlist.strings new file mode 100644 index 0000000..25c0677 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/zh_CN.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/zh_HK.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/zh_HK.lproj/InfoPlist.strings new file mode 100644 index 0000000..087d7bc Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/zh_HK.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/Resources/zh_TW.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/zh_TW.lproj/InfoPlist.strings new file mode 100644 index 0000000..048fdb1 Binary files /dev/null and b/macupdater-admin.app/Contents/Resources/zh_TW.lproj/InfoPlist.strings differ diff --git a/macupdater-admin.app/Contents/document.wflow b/macupdater-admin.app/Contents/document.wflow new file mode 100644 index 0000000..233f1e0 --- /dev/null +++ b/macupdater-admin.app/Contents/document.wflow @@ -0,0 +1,1377 @@ + + + + + AMApplicationBuild + 444.42 + AMApplicationVersion + 2.9 + AMDocumentVersion + 2 + actions + + + action + + AMAccepts + + Container + List + Optional + + Types + + + AMActionVersion + 1.0.2 + AMApplication + + Automator + + AMParameterProperties + + affirmativeTitle + + displayWarning + + explanationText + + negativeTitle + + questionText + + tokenizedValue + + Run admin updates too? + + + + AMProvides + + Container + List + Types + + + ActionBundlePath + /System/Library/Automator/Ask for Confirmation.action + ActionName + Ask for Confirmation + ActionParameters + + affirmativeTitle + OK + displayWarning + + explanationText + Launch the brew workflows for the admin account... + negativeTitle + Cancel + questionText + Run admin updates too? + + BundleIdentifier + com.apple.Automator.AskforConfirmation + CFBundleVersion + 1.0.2 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + AMAskForConfirmationAction + InputUUID + 16C327C0-9449-4E8D-866A-17C371443F9F + Keywords + + Message + Ask + Display + Prompt + Show + + OutputUUID + ED1174DF-7ECD-47F9-9D6D-82141FAEA634 + UUID + 61770AD8-6E91-4A3E-AA8C-9F5DDB7F8DFA + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + questionText + required + 0 + type + 0 + uuid + 0 + + 1 + + default value + + name + displayWarning + required + 0 + type + 0 + uuid + 1 + + 2 + + default value + + name + explanationText + required + 0 + type + 0 + uuid + 2 + + 3 + + default value + OK + name + affirmativeTitle + required + 0 + type + 0 + uuid + 3 + + 4 + + default value + Cancel + name + negativeTitle + required + 0 + type + 0 + uuid + 4 + + + isViewVisible + + location + 455.000000:266.000000 + nibPath + /System/Library/Automator/Ask for Confirmation.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + com.apple.cocoa.string + + + AMActionVersion + 1.1.1 + AMApplication + + Automator + TextEdit + + AMParameterProperties + + buttonAffirmative + + buttonNegative + + defaultAnswer + + defaultMessage + + tokenizedValue + + Username + + + requireInput + + + AMProvides + + Container + List + Types + + com.apple.cocoa.string + + + ActionBundlePath + /System/Library/Automator/Ask for Text.action + ActionName + Ask for Text + ActionParameters + + buttonAffirmative + OK + buttonNegative + Cancel + defaultAnswer + + defaultMessage + Username + requireInput + + + BundleIdentifier + com.apple.Automator.TextInputDialog + CFBundleVersion + 1.1.1 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryText + + Class Name + AMAskForTextAction + IgnoresInput + + InputUUID + D3AFF34F-6AB2-435E-B909-25421C549454 + Keywords + + Text + Ask + Prompt + + OutputUUID + BC4D9B64-D4B6-42D0-BC87-7BB332B9EE41 + UUID + EEA13B5C-BF1F-4A2D-A8FD-380F40B27262 + UnlocalizedApplications + + Automator + TextEdit + + arguments + + 0 + + default value + + name + defaultAnswer + required + 0 + type + 0 + uuid + 0 + + 1 + + default value + OK + name + buttonAffirmative + required + 0 + type + 0 + uuid + 1 + + 2 + + default value + + name + defaultMessage + required + 0 + type + 0 + uuid + 2 + + 3 + + default value + Cancel + name + buttonNegative + required + 0 + type + 0 + uuid + 3 + + 4 + + default value + + name + requireInput + required + 0 + type + 0 + uuid + 4 + + + isViewVisible + + location + 455.000000:447.000000 + nibPath + /System/Library/Automator/Ask for Text.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + * + + + AMActionVersion + v.1.0.2 + AMApplication + + Automator + + AMParameterProperties + + variableUUID + + isPathPopUp + + selectedVariableUUID + 3F913F6A-8181-4D74-A5EA-3CFE48C88B37 + + + AMProvides + + Container + List + Types + + * + + + AMRequiredResources + + ActionBundlePath + /System/Library/Automator/Set Value of Variable.action + ActionName + Set Value of Variable + ActionParameters + + variableUUID + 3F913F6A-8181-4D74-A5EA-3CFE48C88B37 + + BundleIdentifier + com.apple.Automator.SetValueofVariable + CFBundleVersion + 1.0.2 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + Set_Value_of_Variable + InputUUID + 6FBB126C-FF91-4F53-8260-2093EB049F5F + Keywords + + variable + binding + input + output + storage + + OutputUUID + B8314093-872F-4C66-AA98-AB25F30E2A7B + UUID + 97BE8442-7929-4A46-8F82-A0245903A8F7 + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + variableUUID + required + 0 + type + 0 + uuid + 0 + + + isViewVisible + + location + 455.000000:552.000000 + nibPath + /System/Library/Automator/Set Value of Variable.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + com.apple.cocoa.string + + + AMActionVersion + 1.1.1 + AMApplication + + Automator + TextEdit + + AMParameterProperties + + buttonAffirmative + + buttonNegative + + defaultAnswer + + defaultMessage + + tokenizedValue + + Password + + + requireInput + + + AMProvides + + Container + List + Types + + com.apple.cocoa.string + + + ActionBundlePath + /System/Library/Automator/Ask for Text.action + ActionName + Ask for Text + ActionParameters + + buttonAffirmative + OK + buttonNegative + Cancel + defaultAnswer + + defaultMessage + Password + requireInput + + + BundleIdentifier + com.apple.Automator.TextInputDialog + CFBundleVersion + 1.1.1 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryText + + Class Name + AMAskForTextAction + IgnoresInput + + InputUUID + 4941E564-D2E4-4A03-B201-4F6A9E13931E + Keywords + + Text + Ask + Prompt + + OutputUUID + D6923EAE-D537-42AE-A321-883D16E8CE38 + UUID + 2A8292E7-DEB3-47FC-B9C9-ED248A6CCD84 + UnlocalizedApplications + + Automator + TextEdit + + arguments + + 0 + + default value + + name + defaultAnswer + required + 0 + type + 0 + uuid + 0 + + 1 + + default value + OK + name + buttonAffirmative + required + 0 + type + 0 + uuid + 1 + + 2 + + default value + + name + defaultMessage + required + 0 + type + 0 + uuid + 2 + + 3 + + default value + Cancel + name + buttonNegative + required + 0 + type + 0 + uuid + 3 + + 4 + + default value + + name + requireInput + required + 0 + type + 0 + uuid + 4 + + + isViewVisible + + location + 455.000000:733.000000 + nibPath + /System/Library/Automator/Ask for Text.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + * + + + AMActionVersion + v.1.0.2 + AMApplication + + Automator + + AMParameterProperties + + variableUUID + + isPathPopUp + + selectedVariableUUID + BE510748-65E0-4F2A-90D6-079154E7B5CB + + + AMProvides + + Container + List + Types + + * + + + AMRequiredResources + + ActionBundlePath + /System/Library/Automator/Set Value of Variable.action + ActionName + Set Value of Variable + ActionParameters + + variableUUID + BE510748-65E0-4F2A-90D6-079154E7B5CB + + BundleIdentifier + com.apple.Automator.SetValueofVariable + CFBundleVersion + 1.0.2 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + Set_Value_of_Variable + InputUUID + 690887DC-BA08-4E16-9FEB-CE072648907D + Keywords + + variable + binding + input + output + storage + + OutputUUID + 6AA9E0D2-4DA5-4386-9864-1FF13933EEF4 + UUID + 28F8E6A0-3508-4515-A38B-A51CC66DBF4F + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + variableUUID + required + 0 + type + 0 + uuid + 0 + + + isViewVisible + + location + 455.000000:838.000000 + nibPath + /System/Library/Automator/Set Value of Variable.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + * + + + AMActionVersion + v.1.0.2 + AMApplication + + Automator + + AMParameterProperties + + variableUUID + + isPathPopUp + + selectedVariableUUID + 3F913F6A-8181-4D74-A5EA-3CFE48C88B37 + + + AMProvides + + Container + List + Types + + * + + + AMRequiredResources + + ActionBundlePath + /System/Library/Automator/Get Value of Variable.action + ActionName + Get Value of Variable + ActionParameters + + variableUUID + 3F913F6A-8181-4D74-A5EA-3CFE48C88B37 + + BundleIdentifier + com.apple.Automator.GetValueofVariable + CFBundleVersion + 1.0.2 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + Get_Value_of_Variable + IgnoresInput + + InputUUID + 6F92EE9C-8C52-4C97-909C-A00E2369E61A + Keywords + + variable + binding + input + output + storage + + OutputUUID + 07BF3BF1-BC21-42A0-AE96-159B2135EC0E + UUID + 5A840F3B-0696-4481-B978-0CED51E4212B + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + variableUUID + required + 0 + type + 0 + uuid + 0 + + + isViewVisible + + location + 455.000000:940.000000 + nibPath + /System/Library/Automator/Get Value of Variable.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + * + + + AMActionVersion + v.1.0.2 + AMApplication + + Automator + + AMParameterProperties + + variableUUID + + isPathPopUp + + selectedVariableUUID + BE510748-65E0-4F2A-90D6-079154E7B5CB + + + AMProvides + + Container + List + Types + + * + + + AMRequiredResources + + ActionBundlePath + /System/Library/Automator/Get Value of Variable.action + ActionName + Get Value of Variable + ActionParameters + + variableUUID + BE510748-65E0-4F2A-90D6-079154E7B5CB + + BundleIdentifier + com.apple.Automator.GetValueofVariable + CFBundleVersion + 1.0.2 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + Get_Value_of_Variable + InputUUID + 24C7CACC-9354-4D4C-B00A-4A4DC87DF23F + Keywords + + variable + binding + input + output + storage + + OutputUUID + 62D3810C-9A56-40ED-8602-F9C861AC0624 + UUID + 3FE825A2-4F6D-4A61-AEDC-B4989EBF26F3 + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + variableUUID + required + 0 + type + 0 + uuid + 0 + + + isViewVisible + + location + 455.000000:1042.000000 + nibPath + /System/Library/Automator/Get Value of Variable.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + com.apple.cocoa.string + + + AMActionVersion + 2.0.3 + AMApplication + + Automator + + AMParameterProperties + + COMMAND_STRING + + CheckedForUserDefaultShell + + inputMethod + + shell + + source + + + AMProvides + + Container + List + Types + + com.apple.cocoa.string + + + ActionBundlePath + /System/Library/Automator/Run Shell Script.action + ActionName + Run Shell Script + ActionParameters + + COMMAND_STRING + name="$1" +passwd="$2" + +/usr/bin/expect -c "spawn login; expect \"Login:\"; send \"$name\r\"; expect \"Password:\"; send \"$passwd\r\"; expect \"g:~ mlungisi$\"; send \"{ brew upgrade; brew update; brew cu -ayf; brew cleanup; }\r\"; expect eof; end" + + + + + + + + CheckedForUserDefaultShell + + inputMethod + 1 + shell + /bin/bash + source + + + BundleIdentifier + com.apple.RunShellScript + CFBundleVersion + 2.0.3 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + RunShellScriptAction + IgnoresInput + + InputUUID + E48991C0-4BFF-49C7-995F-A6694F98A934 + Keywords + + Shell + Script + Command + Run + Unix + + OutputUUID + 08D05D16-6790-4575-871A-7042C730048F + UUID + 98B86ED8-9BE0-4488-8D03-C99E64A175B2 + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + 0 + name + inputMethod + required + 0 + type + 0 + uuid + 0 + + 1 + + default value + + name + source + required + 0 + type + 0 + uuid + 1 + + 2 + + default value + + name + CheckedForUserDefaultShell + required + 0 + type + 0 + uuid + 2 + + 3 + + default value + + name + COMMAND_STRING + required + 0 + type + 0 + uuid + 3 + + 4 + + default value + /bin/sh + name + shell + required + 0 + type + 0 + uuid + 4 + + + isViewVisible + + location + 455.000000:1224.000000 + nibPath + /System/Library/Automator/Run Shell Script.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + + AMActionVersion + 1.0 + AMApplication + + Automator + + AMParameterProperties + + message + + tokenizedValue + + All updates completed. + + + subtitle + + tokenizedValue + + Admin + + + title + + tokenizedValue + + Macupdater + + + + AMProvides + + Container + List + Types + + + ActionBundlePath + /System/Library/Automator/Display Notification.action + ActionName + Display Notification + ActionParameters + + message + All updates completed. + subtitle + Admin + title + Macupdater + + BundleIdentifier + com.apple.Automator.Display-Notification + CFBundleVersion + 1.0 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + AMDisplayNotificationAction + IgnoresInput + + InputUUID + 9A29F096-8202-4DD7-AB59-636753B47F5B + Keywords + + OutputUUID + B5DD954E-9976-41EE-9396-60DEBCFE50D1 + UUID + 2C546067-81E8-436C-A84B-FE508A501F9F + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + subtitle + required + 0 + type + 0 + uuid + 0 + + 1 + + default value + + name + title + required + 0 + type + 0 + uuid + 1 + + 2 + + default value + + name + message + required + 0 + type + 0 + uuid + 2 + + + isViewVisible + + location + 455.000000:1413.000000 + nibPath + /System/Library/Automator/Display Notification.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + connectors + + 02FEDFED-B621-4A01-A8BA-880221D128D4 + + from + 5A840F3B-0696-4481-B978-0CED51E4212B - 5A840F3B-0696-4481-B978-0CED51E4212B + to + 3FE825A2-4F6D-4A61-AEDC-B4989EBF26F3 - 3FE825A2-4F6D-4A61-AEDC-B4989EBF26F3 + + 08E9D817-687E-4D23-A865-DA446C5A7189 + + from + 98B86ED8-9BE0-4488-8D03-C99E64A175B2 - 98B86ED8-9BE0-4488-8D03-C99E64A175B2 + to + 2C546067-81E8-436C-A84B-FE508A501F9F - 2C546067-81E8-436C-A84B-FE508A501F9F + + 39413B1D-43C3-4620-9A00-D1C7B0AE349C + + from + 28F8E6A0-3508-4515-A38B-A51CC66DBF4F - 28F8E6A0-3508-4515-A38B-A51CC66DBF4F + to + 5A840F3B-0696-4481-B978-0CED51E4212B - 5A840F3B-0696-4481-B978-0CED51E4212B + + 69B247AF-33F1-4D64-9B75-B859943F7D31 + + from + 61770AD8-6E91-4A3E-AA8C-9F5DDB7F8DFA - 61770AD8-6E91-4A3E-AA8C-9F5DDB7F8DFA + to + EEA13B5C-BF1F-4A2D-A8FD-380F40B27262 - EEA13B5C-BF1F-4A2D-A8FD-380F40B27262 + + 6C2D79BF-21E3-48A4-892C-20EB7BA5D085 + + from + 3FE825A2-4F6D-4A61-AEDC-B4989EBF26F3 - 3FE825A2-4F6D-4A61-AEDC-B4989EBF26F3 + to + 98B86ED8-9BE0-4488-8D03-C99E64A175B2 - 98B86ED8-9BE0-4488-8D03-C99E64A175B2 + + 755E83F1-B2B8-45DE-B77D-52D915AA4B89 + + from + 2A8292E7-DEB3-47FC-B9C9-ED248A6CCD84 - 2A8292E7-DEB3-47FC-B9C9-ED248A6CCD84 + to + 28F8E6A0-3508-4515-A38B-A51CC66DBF4F - 28F8E6A0-3508-4515-A38B-A51CC66DBF4F + + DE5F583E-5E67-4D48-8915-E74A4DED3E9A + + from + 97BE8442-7929-4A46-8F82-A0245903A8F7 - 97BE8442-7929-4A46-8F82-A0245903A8F7 + to + 2A8292E7-DEB3-47FC-B9C9-ED248A6CCD84 - 2A8292E7-DEB3-47FC-B9C9-ED248A6CCD84 + + FCCCA9B2-A974-4815-9657-A41489ECBD90 + + from + EEA13B5C-BF1F-4A2D-A8FD-380F40B27262 - EEA13B5C-BF1F-4A2D-A8FD-380F40B27262 + to + 97BE8442-7929-4A46-8F82-A0245903A8F7 - 97BE8442-7929-4A46-8F82-A0245903A8F7 + + + variables + + + UUID + 3F913F6A-8181-4D74-A5EA-3CFE48C88B37 + identifier + com.apple.Automator.Variable.Storage + name + name + + + UUID + BE510748-65E0-4F2A-90D6-079154E7B5CB + identifier + com.apple.Automator.Variable.Storage + name + password + + + workflowMetaData + + workflowTypeIdentifier + com.apple.Automator.application + + + diff --git a/macupdater-admin.sh b/macupdater-admin.sh new file mode 100644 index 0000000..86e23ea --- /dev/null +++ b/macupdater-admin.sh @@ -0,0 +1,86 @@ +#!/bin/zsh + +# This script updates brew, brew cask apps, apm packages, ruby gems, rvm, npm packages and macOS (including system software) Apps. +# Additionally, for admin, this script updates the hosts file. +# Version 6.5 (6 October, 2018) + +osascript -e 'display notification "Updater starting..." with title "MacUpdater"' + +# Start sudo session +sudo -v + +# Update the hosts files to the latest Steven Black versions +python3 hosts/updateHostsFile.py --auto --replace --flush-dns-cache --skipstatichosts + +# Replace old hosts file with new versions +sudo cp hosts/hosts /etc/ + +# Function: Reviews the last command for errors. Then prints update complete to log or shows error dialog. Takes section variable. +catcher () { +if [ "$?" = "0" ]; then + printf "$1 updates complete." >> ~/Projects/Programming/macupdater/macupdater-log.txt # If no error, print update complete to file. + printf "" >> ~/Projects/Programming/macupdater/macupdater-log.txt # Add a line to file. +else # If error, show a dialog stating the section where the error occurred. + osascript -e 'display notification "'$1': Script encountered errors." with title "MacUpdater"' +fi +} + +# Function: Creates a horizontal line in the text file. +line () { +echo "" >> ~/Projects/Programming/macupdater/macupdater-log.txt # Starts the horizontal line on its own fresh line. +printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - >> ~/logs/macupdater/macupdater-log.txt # Prints line +} + +# Writes the header for the log file: Program, Version number, Date and Line. +{ echo "macupdater 6.0"; echo "Log: " `date`; line; } > ~/logs/macupdater-log.txt + +# Brew update commands. +{ echo "Brew"; echo ""; brew update; brew bundle dump --force; brew bundle -verbose; brew cleanup; brew prune; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +catcher Brew +line + +# Brew-cask update commands. Functionality replaced by brew bundle. +# { echo "Brew Cask"; echo ""; brew cu -ay --cleanup; brew cask cleanup; } >> ~/logs/macupdater-log.txt +# catcher Brew-cask +# line + +# App Store update commands. Functionality replaced by brew bundle. +# { echo "Apps"; echo ""; mas upgrade; } >> ~/logs/macupdater-log.txt +# catcher Apps + +# Node update commands. +{ echo "Node"; echo ""; npm install npm@latest -g --silent; npm update --silent; npm prune --silent; } >> ~/logs/macupdater-log.txt +catcher Node +line + +# Ruby update commands. Commented out RVM update (takes too long and not necessary). +# { rvm get latest; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +# rvm cleanup all (don't need this for now) +{ echo "Ruby"; echo ""; ; gem update --system; gem update; gem cleanup; } >> ~/logs/macupdater-log.txt +catcher Ruby +line + +# Atom update commands. +{ echo "Atom"; echo ""; apm update; apm upgrade; apm prune; } >> ~/logs/macupdater-log.txt +catcher Atom +line + +# Perl update commands. Commented out (don;t need uopdated Perl at the moment) +# { echo "Perl"; echo ""; perlbrew upgrade-perl; perlbrew self-upgrade --silent; perlbrew clean; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +# catcher Perl +# line + +# System software update commads. +{ echo "macOS"; echo ""; softwareupdate -ia; } >> ~/logs/macupdater-log.txt +catcher macOS +line + + +echo "" >> ~/logs/macupdater-log.txt +line + +# Prints and shows dialog box confirming all updates are done. +printf "All updates complete. END" >> ~/logs/macupdater-log.txt +osascript -e 'display notification "All updates completed." with title "MacUpdater"' + +exit 0 diff --git a/macupdater-admin.workflow/Contents/Info.plist b/macupdater-admin.workflow/Contents/Info.plist new file mode 100644 index 0000000..5b73248 --- /dev/null +++ b/macupdater-admin.workflow/Contents/Info.plist @@ -0,0 +1,8 @@ + + + + + CFBundleName + macupdater-admin + + diff --git a/macupdater-admin.workflow/Contents/QuickLook/Preview.png b/macupdater-admin.workflow/Contents/QuickLook/Preview.png new file mode 100644 index 0000000..cb5cfed Binary files /dev/null and b/macupdater-admin.workflow/Contents/QuickLook/Preview.png differ diff --git a/macupdater-admin.workflow/Contents/document.wflow b/macupdater-admin.workflow/Contents/document.wflow new file mode 100644 index 0000000..fd96d7a --- /dev/null +++ b/macupdater-admin.workflow/Contents/document.wflow @@ -0,0 +1,1377 @@ + + + + + AMApplicationBuild + 444.42 + AMApplicationVersion + 2.9 + AMDocumentVersion + 2 + actions + + + action + + AMAccepts + + Container + List + Optional + + Types + + + AMActionVersion + 1.0.2 + AMApplication + + Automator + + AMParameterProperties + + affirmativeTitle + + displayWarning + + explanationText + + negativeTitle + + questionText + + tokenizedValue + + Run admin updates too? + + + + AMProvides + + Container + List + Types + + + ActionBundlePath + /System/Library/Automator/Ask for Confirmation.action + ActionName + Ask for Confirmation + ActionParameters + + affirmativeTitle + OK + displayWarning + + explanationText + Launch the brew workflows for the admin account... + negativeTitle + Cancel + questionText + Run admin updates too? + + BundleIdentifier + com.apple.Automator.AskforConfirmation + CFBundleVersion + 1.0.2 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + AMAskForConfirmationAction + InputUUID + 16C327C0-9449-4E8D-866A-17C371443F9F + Keywords + + Message + Ask + Display + Prompt + Show + + OutputUUID + ED1174DF-7ECD-47F9-9D6D-82141FAEA634 + UUID + 61770AD8-6E91-4A3E-AA8C-9F5DDB7F8DFA + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + questionText + required + 0 + type + 0 + uuid + 0 + + 1 + + default value + + name + displayWarning + required + 0 + type + 0 + uuid + 1 + + 2 + + default value + + name + explanationText + required + 0 + type + 0 + uuid + 2 + + 3 + + default value + OK + name + affirmativeTitle + required + 0 + type + 0 + uuid + 3 + + 4 + + default value + Cancel + name + negativeTitle + required + 0 + type + 0 + uuid + 4 + + + isViewVisible + + location + 455.000000:198.000000 + nibPath + /System/Library/Automator/Ask for Confirmation.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + com.apple.cocoa.string + + + AMActionVersion + 1.1.1 + AMApplication + + Automator + TextEdit + + AMParameterProperties + + buttonAffirmative + + buttonNegative + + defaultAnswer + + defaultMessage + + tokenizedValue + + Username + + + requireInput + + + AMProvides + + Container + List + Types + + com.apple.cocoa.string + + + ActionBundlePath + /System/Library/Automator/Ask for Text.action + ActionName + Ask for Text + ActionParameters + + buttonAffirmative + OK + buttonNegative + Cancel + defaultAnswer + + defaultMessage + Username + requireInput + + + BundleIdentifier + com.apple.Automator.TextInputDialog + CFBundleVersion + 1.1.1 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryText + + Class Name + AMAskForTextAction + IgnoresInput + + InputUUID + D3AFF34F-6AB2-435E-B909-25421C549454 + Keywords + + Text + Ask + Prompt + + OutputUUID + BC4D9B64-D4B6-42D0-BC87-7BB332B9EE41 + UUID + EEA13B5C-BF1F-4A2D-A8FD-380F40B27262 + UnlocalizedApplications + + Automator + TextEdit + + arguments + + 0 + + default value + + name + defaultAnswer + required + 0 + type + 0 + uuid + 0 + + 1 + + default value + OK + name + buttonAffirmative + required + 0 + type + 0 + uuid + 1 + + 2 + + default value + + name + defaultMessage + required + 0 + type + 0 + uuid + 2 + + 3 + + default value + Cancel + name + buttonNegative + required + 0 + type + 0 + uuid + 3 + + 4 + + default value + + name + requireInput + required + 0 + type + 0 + uuid + 4 + + + isViewVisible + + location + 455.000000:379.000000 + nibPath + /System/Library/Automator/Ask for Text.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + * + + + AMActionVersion + v.1.0.2 + AMApplication + + Automator + + AMParameterProperties + + variableUUID + + isPathPopUp + + selectedVariableUUID + 3F913F6A-8181-4D74-A5EA-3CFE48C88B37 + + + AMProvides + + Container + List + Types + + * + + + AMRequiredResources + + ActionBundlePath + /System/Library/Automator/Set Value of Variable.action + ActionName + Set Value of Variable + ActionParameters + + variableUUID + 3F913F6A-8181-4D74-A5EA-3CFE48C88B37 + + BundleIdentifier + com.apple.Automator.SetValueofVariable + CFBundleVersion + 1.0.2 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + Set_Value_of_Variable + InputUUID + 6FBB126C-FF91-4F53-8260-2093EB049F5F + Keywords + + variable + binding + input + output + storage + + OutputUUID + B8314093-872F-4C66-AA98-AB25F30E2A7B + UUID + 97BE8442-7929-4A46-8F82-A0245903A8F7 + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + variableUUID + required + 0 + type + 0 + uuid + 0 + + + isViewVisible + + location + 455.000000:484.000000 + nibPath + /System/Library/Automator/Set Value of Variable.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + com.apple.cocoa.string + + + AMActionVersion + 1.1.1 + AMApplication + + Automator + TextEdit + + AMParameterProperties + + buttonAffirmative + + buttonNegative + + defaultAnswer + + defaultMessage + + tokenizedValue + + Password + + + requireInput + + + AMProvides + + Container + List + Types + + com.apple.cocoa.string + + + ActionBundlePath + /System/Library/Automator/Ask for Text.action + ActionName + Ask for Text + ActionParameters + + buttonAffirmative + OK + buttonNegative + Cancel + defaultAnswer + + defaultMessage + Password + requireInput + + + BundleIdentifier + com.apple.Automator.TextInputDialog + CFBundleVersion + 1.1.1 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryText + + Class Name + AMAskForTextAction + IgnoresInput + + InputUUID + 4941E564-D2E4-4A03-B201-4F6A9E13931E + Keywords + + Text + Ask + Prompt + + OutputUUID + D6923EAE-D537-42AE-A321-883D16E8CE38 + UUID + 2A8292E7-DEB3-47FC-B9C9-ED248A6CCD84 + UnlocalizedApplications + + Automator + TextEdit + + arguments + + 0 + + default value + + name + defaultAnswer + required + 0 + type + 0 + uuid + 0 + + 1 + + default value + OK + name + buttonAffirmative + required + 0 + type + 0 + uuid + 1 + + 2 + + default value + + name + defaultMessage + required + 0 + type + 0 + uuid + 2 + + 3 + + default value + Cancel + name + buttonNegative + required + 0 + type + 0 + uuid + 3 + + 4 + + default value + + name + requireInput + required + 0 + type + 0 + uuid + 4 + + + isViewVisible + + location + 455.000000:665.000000 + nibPath + /System/Library/Automator/Ask for Text.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + * + + + AMActionVersion + v.1.0.2 + AMApplication + + Automator + + AMParameterProperties + + variableUUID + + isPathPopUp + + selectedVariableUUID + BE510748-65E0-4F2A-90D6-079154E7B5CB + + + AMProvides + + Container + List + Types + + * + + + AMRequiredResources + + ActionBundlePath + /System/Library/Automator/Set Value of Variable.action + ActionName + Set Value of Variable + ActionParameters + + variableUUID + BE510748-65E0-4F2A-90D6-079154E7B5CB + + BundleIdentifier + com.apple.Automator.SetValueofVariable + CFBundleVersion + 1.0.2 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + Set_Value_of_Variable + InputUUID + 690887DC-BA08-4E16-9FEB-CE072648907D + Keywords + + variable + binding + input + output + storage + + OutputUUID + 6AA9E0D2-4DA5-4386-9864-1FF13933EEF4 + UUID + 28F8E6A0-3508-4515-A38B-A51CC66DBF4F + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + variableUUID + required + 0 + type + 0 + uuid + 0 + + + isViewVisible + + location + 455.000000:770.000000 + nibPath + /System/Library/Automator/Set Value of Variable.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + * + + + AMActionVersion + v.1.0.2 + AMApplication + + Automator + + AMParameterProperties + + variableUUID + + isPathPopUp + + selectedVariableUUID + 3F913F6A-8181-4D74-A5EA-3CFE48C88B37 + + + AMProvides + + Container + List + Types + + * + + + AMRequiredResources + + ActionBundlePath + /System/Library/Automator/Get Value of Variable.action + ActionName + Get Value of Variable + ActionParameters + + variableUUID + 3F913F6A-8181-4D74-A5EA-3CFE48C88B37 + + BundleIdentifier + com.apple.Automator.GetValueofVariable + CFBundleVersion + 1.0.2 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + Get_Value_of_Variable + IgnoresInput + + InputUUID + 6F92EE9C-8C52-4C97-909C-A00E2369E61A + Keywords + + variable + binding + input + output + storage + + OutputUUID + 07BF3BF1-BC21-42A0-AE96-159B2135EC0E + UUID + 5A840F3B-0696-4481-B978-0CED51E4212B + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + variableUUID + required + 0 + type + 0 + uuid + 0 + + + isViewVisible + + location + 455.000000:872.000000 + nibPath + /System/Library/Automator/Get Value of Variable.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + * + + + AMActionVersion + v.1.0.2 + AMApplication + + Automator + + AMParameterProperties + + variableUUID + + isPathPopUp + + selectedVariableUUID + BE510748-65E0-4F2A-90D6-079154E7B5CB + + + AMProvides + + Container + List + Types + + * + + + AMRequiredResources + + ActionBundlePath + /System/Library/Automator/Get Value of Variable.action + ActionName + Get Value of Variable + ActionParameters + + variableUUID + BE510748-65E0-4F2A-90D6-079154E7B5CB + + BundleIdentifier + com.apple.Automator.GetValueofVariable + CFBundleVersion + 1.0.2 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + Get_Value_of_Variable + InputUUID + 24C7CACC-9354-4D4C-B00A-4A4DC87DF23F + Keywords + + variable + binding + input + output + storage + + OutputUUID + 62D3810C-9A56-40ED-8602-F9C861AC0624 + UUID + 3FE825A2-4F6D-4A61-AEDC-B4989EBF26F3 + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + variableUUID + required + 0 + type + 0 + uuid + 0 + + + isViewVisible + + location + 455.000000:974.000000 + nibPath + /System/Library/Automator/Get Value of Variable.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + com.apple.cocoa.string + + + AMActionVersion + 2.0.3 + AMApplication + + Automator + + AMParameterProperties + + COMMAND_STRING + + CheckedForUserDefaultShell + + inputMethod + + shell + + source + + + AMProvides + + Container + List + Types + + com.apple.cocoa.string + + + ActionBundlePath + /System/Library/Automator/Run Shell Script.action + ActionName + Run Shell Script + ActionParameters + + COMMAND_STRING + name="$1" +passwd="$2" + +/usr/bin/expect -c "spawn login; expect \"Login:\"; send \"$name\r\"; expect \"Password:\"; send \"$passwd\r\"; expect \"g:~ mlungisi$\"; send \"{ brew upgrade; brew update; brew cu -ayf; brew cleanup; }\r\"; expect eof; end" + + + + + + + + CheckedForUserDefaultShell + + inputMethod + 1 + shell + /bin/bash + source + + + BundleIdentifier + com.apple.RunShellScript + CFBundleVersion + 2.0.3 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + RunShellScriptAction + IgnoresInput + + InputUUID + E48991C0-4BFF-49C7-995F-A6694F98A934 + Keywords + + Shell + Script + Command + Run + Unix + + OutputUUID + 08D05D16-6790-4575-871A-7042C730048F + UUID + 98B86ED8-9BE0-4488-8D03-C99E64A175B2 + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + 0 + name + inputMethod + required + 0 + type + 0 + uuid + 0 + + 1 + + default value + + name + source + required + 0 + type + 0 + uuid + 1 + + 2 + + default value + + name + CheckedForUserDefaultShell + required + 0 + type + 0 + uuid + 2 + + 3 + + default value + + name + COMMAND_STRING + required + 0 + type + 0 + uuid + 3 + + 4 + + default value + /bin/sh + name + shell + required + 0 + type + 0 + uuid + 4 + + + isViewVisible + + location + 455.000000:1156.000000 + nibPath + /System/Library/Automator/Run Shell Script.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + action + + AMAccepts + + Container + List + Optional + + Types + + + AMActionVersion + 1.0 + AMApplication + + Automator + + AMParameterProperties + + message + + tokenizedValue + + All updates completed. + + + subtitle + + tokenizedValue + + Admin + + + title + + tokenizedValue + + Macupdater + + + + AMProvides + + Container + List + Types + + + ActionBundlePath + /System/Library/Automator/Display Notification.action + ActionName + Display Notification + ActionParameters + + message + All updates completed. + subtitle + Admin + title + Macupdater + + BundleIdentifier + com.apple.Automator.Display-Notification + CFBundleVersion + 1.0 + CanShowSelectedItemsWhenRun + + CanShowWhenRun + + Category + + AMCategoryUtilities + + Class Name + AMDisplayNotificationAction + IgnoresInput + + InputUUID + 9A29F096-8202-4DD7-AB59-636753B47F5B + Keywords + + OutputUUID + B5DD954E-9976-41EE-9396-60DEBCFE50D1 + UUID + 2C546067-81E8-436C-A84B-FE508A501F9F + UnlocalizedApplications + + Automator + + arguments + + 0 + + default value + + name + subtitle + required + 0 + type + 0 + uuid + 0 + + 1 + + default value + + name + title + required + 0 + type + 0 + uuid + 1 + + 2 + + default value + + name + message + required + 0 + type + 0 + uuid + 2 + + + isViewVisible + + location + 455.000000:1345.000000 + nibPath + /System/Library/Automator/Display Notification.action/Contents/Resources/Base.lproj/main.nib + + isViewVisible + + + + connectors + + 2050DCB2-801B-443B-A475-42EDB3BFE44D + + from + 3FE825A2-4F6D-4A61-AEDC-B4989EBF26F3 - 3FE825A2-4F6D-4A61-AEDC-B4989EBF26F3 + to + 98B86ED8-9BE0-4488-8D03-C99E64A175B2 - 98B86ED8-9BE0-4488-8D03-C99E64A175B2 + + 29EB8AB3-585E-42BA-8EA4-BD4DF48C8D8D + + from + 28F8E6A0-3508-4515-A38B-A51CC66DBF4F - 28F8E6A0-3508-4515-A38B-A51CC66DBF4F + to + 5A840F3B-0696-4481-B978-0CED51E4212B - 5A840F3B-0696-4481-B978-0CED51E4212B + + 388009EF-05C5-4BE3-A81D-81DE4FA59042 + + from + 97BE8442-7929-4A46-8F82-A0245903A8F7 - 97BE8442-7929-4A46-8F82-A0245903A8F7 + to + 2A8292E7-DEB3-47FC-B9C9-ED248A6CCD84 - 2A8292E7-DEB3-47FC-B9C9-ED248A6CCD84 + + 5DC2B01E-105E-4C35-80D2-B584BC523575 + + from + 98B86ED8-9BE0-4488-8D03-C99E64A175B2 - 98B86ED8-9BE0-4488-8D03-C99E64A175B2 + to + 2C546067-81E8-436C-A84B-FE508A501F9F - 2C546067-81E8-436C-A84B-FE508A501F9F + + 9AE3DAA2-9D49-44F3-B415-2DB2CC1172CE + + from + 61770AD8-6E91-4A3E-AA8C-9F5DDB7F8DFA - 61770AD8-6E91-4A3E-AA8C-9F5DDB7F8DFA + to + EEA13B5C-BF1F-4A2D-A8FD-380F40B27262 - EEA13B5C-BF1F-4A2D-A8FD-380F40B27262 + + A5852BF3-C834-4B64-9DDA-180EC09DDCEA + + from + EEA13B5C-BF1F-4A2D-A8FD-380F40B27262 - EEA13B5C-BF1F-4A2D-A8FD-380F40B27262 + to + 97BE8442-7929-4A46-8F82-A0245903A8F7 - 97BE8442-7929-4A46-8F82-A0245903A8F7 + + CD3C0FC0-D32F-4180-AEC0-CDC158DF99CB + + from + 2A8292E7-DEB3-47FC-B9C9-ED248A6CCD84 - 2A8292E7-DEB3-47FC-B9C9-ED248A6CCD84 + to + 28F8E6A0-3508-4515-A38B-A51CC66DBF4F - 28F8E6A0-3508-4515-A38B-A51CC66DBF4F + + E965A57A-1BA3-49D5-8BDC-C0A0525103EA + + from + 5A840F3B-0696-4481-B978-0CED51E4212B - 5A840F3B-0696-4481-B978-0CED51E4212B + to + 3FE825A2-4F6D-4A61-AEDC-B4989EBF26F3 - 3FE825A2-4F6D-4A61-AEDC-B4989EBF26F3 + + + variables + + + UUID + 3F913F6A-8181-4D74-A5EA-3CFE48C88B37 + identifier + com.apple.Automator.Variable.Storage + name + name + + + UUID + BE510748-65E0-4F2A-90D6-079154E7B5CB + identifier + com.apple.Automator.Variable.Storage + name + password + + + workflowMetaData + + workflowTypeIdentifier + com.apple.Automator.workflow + + + diff --git a/macupdater-log.txt b/macupdater-log.txt deleted file mode 100644 index a175705..0000000 --- a/macupdater-log.txt +++ /dev/null @@ -1,130 +0,0 @@ -macupdater 6.0 -Log: Sat Oct 6 13:26:11 SAST 2018 - -------------------------------------------------------------------------------------- -Brew - -Already up-to-date. -Skipping install of buo/cask-upgrade tap. It is already installed. -Using buo/cask-upgrade -Skipping install of homebrew/bundle tap. It is already installed. -Using homebrew/bundle -Skipping install of homebrew/cask tap. It is already installed. -Using homebrew/cask -Skipping install of homebrew/cask-fonts tap. It is already installed. -Using homebrew/cask-fonts -Skipping install of homebrew/cask-versions tap. It is already installed. -Using homebrew/cask-versions -Skipping install of homebrew/core tap. It is already installed. -Using homebrew/core -Skipping install of openssl formula. It is already up-to-date. -Using openssl -Skipping install of bash formula. It is already up-to-date. -Using bash -Skipping install of bash-completion formula. It is already up-to-date. -Using bash-completion -Skipping install of bash-git-prompt formula. It is already up-to-date. -Using bash-git-prompt -Skipping install of coreutils formula. It is already up-to-date. -Using coreutils -Skipping install of curl formula. It is already up-to-date. -Using curl -Skipping install of ffmpeg formula. It is already up-to-date. -Using ffmpeg -Skipping install of freetype formula. It is already up-to-date. -Using freetype -Skipping install of git formula. It is already up-to-date. -Using git -Skipping install of gnupg formula. It is already up-to-date. -Using gnupg -Skipping install of imagemagick formula. It is already up-to-date. -Using imagemagick -Skipping install of mackup formula. It is already up-to-date. -Using mackup -Skipping install of make formula. It is already up-to-date. -Using make -Skipping install of mas formula. It is already up-to-date. -Using mas -Skipping install of nmap formula. It is already up-to-date. -Using nmap -Skipping install of node formula. It is already up-to-date. -Using node -Skipping install of openvpn formula. It is already up-to-date. -Using openvpn -Skipping install of rsync formula. It is already up-to-date. -Using rsync -Skipping install of sphinx-doc formula. It is already up-to-date. -Using sphinx-doc -Skipping install of trash formula. It is already up-to-date. -Using trash -Skipping install of tree formula. It is already up-to-date. -Using tree -Skipping install of wget formula. It is already up-to-date. -Using wget -Skipping install of wp-cli formula. It is already up-to-date. -Using wp-cli -Skipping install of youtube-dl formula. It is already up-to-date. -Using youtube-dl -Skipping install of zsh formula. It is already up-to-date. -Using zsh -Skipping install of zsh-completions formula. It is already up-to-date. -Using zsh-completions -Skipping install of zsh-git-prompt formula. It is already up-to-date. -Using zsh-git-prompt -Skipping install of zsh-syntax-highlighting formula. It is already up-to-date. -Using zsh-syntax-highlighting -Using adapter -Using android-platform-tools -Using artpip -Using atom -Using boom-3d -Using carbon-copy-cloner -Using cheatsheet -Using codekit -Using controlplane -Using cyberduck -Using darktable -Using disk-drill -Using flux -Using font-abel -Using font-aboriginal-sans -Using font-aboriginal-serif -Using font-african-sans -Using font-african-serif -Using font-anonymice-powerline -Using font-input -Using font-inter-ui -Using fork -Using hazel3 -Using horndis -Using iina -Using iterm2-nightly -Using itsycal -Using knockknock -Using libreoffice -Using pdf-expert -Using platypus -Using qlcolorcode -Using qlmarkdown -Using qlprettypatch -Using qlstephen -Using quicksilver -Using signal -Using sketchup -Using soduto -Using transmission -Using vivaldi -Using ynab -Using Affinity Designer -Using Affinity Photo -Using Amphetamine -Using DaVinci Resolve -Using GarageBand -Using GIF Brewery 3 -Using GIPHY CAPTURE -Using InfoSlips Viewer -Using Keynote -Using Pages -Using TokenLock -Using Xcode -Homebrew Bundle complete! 88 Brewfile dependencies now installed. diff --git a/macupdater.sh b/macupdater.sh index a203219..271c4d1 100755 --- a/macupdater.sh +++ b/macupdater.sh @@ -1,10 +1,14 @@ #!/Users/gugulethu/brew/bin/zsh -# This script updates brew, brew cask apps, apm packages, ruby gems, rvm, npm packages and macOS (including system software) Apps. -# Version 6.5 (6 October, 2018) +# This script updates brew, brew cask apps, atom packages, ruby gems, node packages and macOS (including system software) Apps. +# Version 7.0 (7 April, 2019) osascript -e 'display notification "Updater starting..." with title "MacUpdater"' +# Export paths for appification. +export PATH="/Users/gugulethu/brew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/$" +export PATH="/Users/gugulethu/brew/sbin:$PATH" + # Function: Reviews the last command for errors. Then prints update complete to log or shows error dialog. Takes section variable. catcher () { if [ "$?" = "0" ]; then @@ -25,18 +29,18 @@ printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - >> ~/Projects/Programmin { echo "macupdater 6.0"; echo "Log: " `date`; line; } > ~/Projects/Programming/macupdater/macupdater-log.txt # Brew update commands. -{ echo "Brew"; echo ""; brew update; brew bundle dump --force; brew bundle -verbose; brew cleanup; brew prune; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +{ echo "Brew"; echo ""; brew update; brew upgrade; brew cleanup; } >> ~/Projects/Programming/macupdater/macupdater-log.txt catcher Brew line -# Brew-cask update commands. Functionality replaced by brew bundle. -# { echo "Brew Cask"; echo ""; brew cu -ay --cleanup; brew cask cleanup; } >> ~/Projects/Programming/macupdater/macupdater-log.txt -# catcher Brew-cask -# line +# Brew-cask update commands. +{ echo "Brew Cask"; echo ""; brew cu -ayf --cleanup; brew cleanup; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +catcher Brew-cask +line -# App Store update commands. Functionality replaced by brew bundle. -# { echo "Apps"; echo ""; mas upgrade; } >> ~/Projects/Programming/macupdater/macupdater-log.txt -# catcher Apps +# App Store update commands. +{ echo "Apps"; echo ""; mas upgrade; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +catcher Apps # Node update commands. { echo "Node"; echo ""; npm install npm@latest -g --silent; npm update --silent; npm prune --silent; } >> ~/Projects/Programming/macupdater/macupdater-log.txt @@ -46,7 +50,7 @@ line # Ruby update commands. Commented out RVM update (takes too long and not necessary). # { rvm get latest; } >> ~/Projects/Programming/macupdater/macupdater-log.txt # rvm cleanup all (don't need this for now) -{ echo "Ruby"; echo ""; ; gem update --system; gem update; gem cleanup; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +{ echo "Ruby"; echo ""; gem update --system; gem update; gem cleanup; } >> ~/Projects/Programming/macupdater/macupdater-log.txt catcher Ruby line @@ -55,7 +59,7 @@ line catcher Atom line -# Perl update commands. Commented out (don;t need uopdated Perl at the moment) +# Perl update commands. Commented out (don't need updated Perl at the moment) # { echo "Perl"; echo ""; perlbrew upgrade-perl; perlbrew self-upgrade --silent; perlbrew clean; } >> ~/Projects/Programming/macupdater/macupdater-log.txt # catcher Perl # line @@ -71,6 +75,9 @@ line # Prints and shows dialog box confirming all updates are done. printf "All updates complete. END" >> ~/Projects/Programming/macupdater/macupdater-log.txt -osascript -e 'display notification "All updates completed." with title "MacUpdater"' +osascript -e 'display notification "All local updates completed." with title "MacUpdater"' + +# Opens the admin updater for brew packages +open /Users/gugulethu/Applications/macupdater.app/Contents/Resources/macupdater-admin.app exit 0