diff --git a/macupdater-admin.app/Contents/Info.plist b/macupdater-admin.app/Contents/Info.plist deleted file mode 100644 index 5408be3..0000000 --- a/macupdater-admin.app/Contents/Info.plist +++ /dev/null @@ -1,109 +0,0 @@ - - - - - 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 deleted file mode 100755 index 040282a..0000000 Binary files a/macupdater-admin.app/Contents/MacOS/Application Stub and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/AutomatorApplet.icns b/macupdater-admin.app/Contents/Resources/AutomatorApplet.icns deleted file mode 100644 index 1e1593e..0000000 Binary files a/macupdater-admin.app/Contents/Resources/AutomatorApplet.icns and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/ar.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ar.lproj/InfoPlist.strings deleted file mode 100644 index 29ccabb..0000000 Binary files a/macupdater-admin.app/Contents/Resources/ar.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/ca.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ca.lproj/InfoPlist.strings deleted file mode 100644 index c0a6ad7..0000000 Binary files a/macupdater-admin.app/Contents/Resources/ca.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/cs.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/cs.lproj/InfoPlist.strings deleted file mode 100644 index 99fb87e..0000000 Binary files a/macupdater-admin.app/Contents/Resources/cs.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/da.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/da.lproj/InfoPlist.strings deleted file mode 100644 index 7c79f43..0000000 Binary files a/macupdater-admin.app/Contents/Resources/da.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/de.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/de.lproj/InfoPlist.strings deleted file mode 100644 index e5b0ee9..0000000 Binary files a/macupdater-admin.app/Contents/Resources/de.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/el.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/el.lproj/InfoPlist.strings deleted file mode 100644 index 426f98c..0000000 Binary files a/macupdater-admin.app/Contents/Resources/el.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/en.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/en.lproj/InfoPlist.strings deleted file mode 100644 index 5cd2271..0000000 Binary files a/macupdater-admin.app/Contents/Resources/en.lproj/InfoPlist.strings and /dev/null 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 deleted file mode 100644 index 5cd2271..0000000 Binary files a/macupdater-admin.app/Contents/Resources/en_AU.lproj/InfoPlist.strings and /dev/null 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 deleted file mode 100644 index 5cd2271..0000000 Binary files a/macupdater-admin.app/Contents/Resources/en_GB.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/es.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/es.lproj/InfoPlist.strings deleted file mode 100644 index d3f3e8c..0000000 Binary files a/macupdater-admin.app/Contents/Resources/es.lproj/InfoPlist.strings and /dev/null 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 deleted file mode 100644 index caabfa4..0000000 Binary files a/macupdater-admin.app/Contents/Resources/es_419.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/fi.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/fi.lproj/InfoPlist.strings deleted file mode 100644 index de8cd96..0000000 Binary files a/macupdater-admin.app/Contents/Resources/fi.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/fr.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/fr.lproj/InfoPlist.strings deleted file mode 100644 index 9e505c0..0000000 Binary files a/macupdater-admin.app/Contents/Resources/fr.lproj/InfoPlist.strings and /dev/null 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 deleted file mode 100644 index 67c036c..0000000 Binary files a/macupdater-admin.app/Contents/Resources/fr_CA.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/he.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/he.lproj/InfoPlist.strings deleted file mode 100644 index a501d87..0000000 Binary files a/macupdater-admin.app/Contents/Resources/he.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/hi.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/hi.lproj/InfoPlist.strings deleted file mode 100644 index af2bf6a..0000000 Binary files a/macupdater-admin.app/Contents/Resources/hi.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/hr.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/hr.lproj/InfoPlist.strings deleted file mode 100644 index 02ad1cf..0000000 Binary files a/macupdater-admin.app/Contents/Resources/hr.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/hu.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/hu.lproj/InfoPlist.strings deleted file mode 100644 index 4433c6c..0000000 Binary files a/macupdater-admin.app/Contents/Resources/hu.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/id.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/id.lproj/InfoPlist.strings deleted file mode 100644 index 03bfb44..0000000 Binary files a/macupdater-admin.app/Contents/Resources/id.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/it.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/it.lproj/InfoPlist.strings deleted file mode 100644 index e92bc17..0000000 Binary files a/macupdater-admin.app/Contents/Resources/it.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/ja.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ja.lproj/InfoPlist.strings deleted file mode 100644 index 1471dd9..0000000 Binary files a/macupdater-admin.app/Contents/Resources/ja.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/ko.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ko.lproj/InfoPlist.strings deleted file mode 100644 index 48fd501..0000000 Binary files a/macupdater-admin.app/Contents/Resources/ko.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/ms.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ms.lproj/InfoPlist.strings deleted file mode 100644 index 445f9db..0000000 Binary files a/macupdater-admin.app/Contents/Resources/ms.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/nl.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/nl.lproj/InfoPlist.strings deleted file mode 100644 index 9236f99..0000000 Binary files a/macupdater-admin.app/Contents/Resources/nl.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/no.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/no.lproj/InfoPlist.strings deleted file mode 100644 index 5c76487..0000000 Binary files a/macupdater-admin.app/Contents/Resources/no.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/pl.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/pl.lproj/InfoPlist.strings deleted file mode 100644 index c07d040..0000000 Binary files a/macupdater-admin.app/Contents/Resources/pl.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/pt.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/pt.lproj/InfoPlist.strings deleted file mode 100644 index d5f6f3e..0000000 Binary files a/macupdater-admin.app/Contents/Resources/pt.lproj/InfoPlist.strings and /dev/null 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 deleted file mode 100644 index dc78336..0000000 Binary files a/macupdater-admin.app/Contents/Resources/pt_PT.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/ro.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ro.lproj/InfoPlist.strings deleted file mode 100644 index 9f61eee..0000000 Binary files a/macupdater-admin.app/Contents/Resources/ro.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/ru.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/ru.lproj/InfoPlist.strings deleted file mode 100644 index af639b9..0000000 Binary files a/macupdater-admin.app/Contents/Resources/ru.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/sk.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/sk.lproj/InfoPlist.strings deleted file mode 100644 index 0bc2895..0000000 Binary files a/macupdater-admin.app/Contents/Resources/sk.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/sv.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/sv.lproj/InfoPlist.strings deleted file mode 100644 index 30d5503..0000000 Binary files a/macupdater-admin.app/Contents/Resources/sv.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/th.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/th.lproj/InfoPlist.strings deleted file mode 100644 index eb56aa8..0000000 Binary files a/macupdater-admin.app/Contents/Resources/th.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/tr.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/tr.lproj/InfoPlist.strings deleted file mode 100644 index 7068230..0000000 Binary files a/macupdater-admin.app/Contents/Resources/tr.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/uk.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/uk.lproj/InfoPlist.strings deleted file mode 100644 index e10476e..0000000 Binary files a/macupdater-admin.app/Contents/Resources/uk.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/Resources/vi.lproj/InfoPlist.strings b/macupdater-admin.app/Contents/Resources/vi.lproj/InfoPlist.strings deleted file mode 100644 index c2429b9..0000000 Binary files a/macupdater-admin.app/Contents/Resources/vi.lproj/InfoPlist.strings and /dev/null 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 deleted file mode 100644 index 25c0677..0000000 Binary files a/macupdater-admin.app/Contents/Resources/zh_CN.lproj/InfoPlist.strings and /dev/null 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 deleted file mode 100644 index 087d7bc..0000000 Binary files a/macupdater-admin.app/Contents/Resources/zh_HK.lproj/InfoPlist.strings and /dev/null 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 deleted file mode 100644 index 048fdb1..0000000 Binary files a/macupdater-admin.app/Contents/Resources/zh_TW.lproj/InfoPlist.strings and /dev/null differ diff --git a/macupdater-admin.app/Contents/document.wflow b/macupdater-admin.app/Contents/document.wflow deleted file mode 100644 index 233f1e0..0000000 --- a/macupdater-admin.app/Contents/document.wflow +++ /dev/null @@ -1,1377 +0,0 @@ - - - - - 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 deleted file mode 100644 index 86e23ea..0000000 --- a/macupdater-admin.sh +++ /dev/null @@ -1,86 +0,0 @@ -#!/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 deleted file mode 100644 index 5b73248..0000000 --- a/macupdater-admin.workflow/Contents/Info.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - CFBundleName - macupdater-admin - - diff --git a/macupdater-admin.workflow/Contents/QuickLook/Preview.png b/macupdater-admin.workflow/Contents/QuickLook/Preview.png deleted file mode 100644 index cb5cfed..0000000 Binary files a/macupdater-admin.workflow/Contents/QuickLook/Preview.png and /dev/null differ diff --git a/macupdater-admin.workflow/Contents/document.wflow b/macupdater-admin.workflow/Contents/document.wflow deleted file mode 100644 index fd96d7a..0000000 --- a/macupdater-admin.workflow/Contents/document.wflow +++ /dev/null @@ -1,1377 +0,0 @@ - - - - - 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.sh b/macupdater.sh index 271c4d1..f577325 100755 --- a/macupdater.sh +++ b/macupdater.sh @@ -1,9 +1,16 @@ #!/Users/gugulethu/brew/bin/zsh # 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) +# Version 8.0 (19 April, 2019) -osascript -e 'display notification "Updater starting..." with title "MacUpdater"' +# The below are Platypus features for managing UI +echo "PROGRESS:0" # Show the progress bar at 0% +echo "Script starting" # Show this message above the progress bar + +# Set the path to the log file +export LOG="/Users/gugulethu/Projects/Programming/push/macupdater/macupdater-log.txt" + +echo "NOTIFICATION:Updater starting..." # Send a notification (with logo) # Export paths for appification. export PATH="/Users/gugulethu/brew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/$" @@ -12,72 +19,101 @@ 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 - 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. + printf "$1 updates complete." >> $LOG # If no error, print update complete to file. + printf "" >> $LOG # Add a line to file. else # If error, show a dialog stating the section where the error occured. - osascript -e 'display notification "'$1': Script encountered errors." with title "MacUpdater"' + echo "NOTIFICATION:'$1': Updates failed." # Send a notification (with logo) 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 ' ' - >> ~/Projects/Programming/macupdater/macupdater-log.txt # Prints line +echo "" >> $LOG # Starts the horizontal line on its own fresh line. +printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - >> $LOG # Prints line } # Writes the header for the log file: Program, Version number, Date and Line. -{ echo "macupdater 6.0"; echo "Log: " `date`; line; } > ~/Projects/Programming/macupdater/macupdater-log.txt +{ echo "macupdater 6.0"; echo "Log: " `date`; line; } > $LOG # Brew update commands. -{ echo "Brew"; echo ""; brew update; brew upgrade; brew cleanup; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +{ echo "Brew"; echo ""; brew update; brew upgrade; brew cleanup; } >> $LOG catcher Brew line +echo "PROGRESS:10" # Show the progress bar at 10% +echo "Brew updates complete" # Show this message above the progress bar + # Brew-cask update commands. -{ echo "Brew Cask"; echo ""; brew cu -ayf --cleanup; brew cleanup; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +{ echo "Brew Cask"; echo ""; brew cu -ayf --cleanup; } >> $LOG catcher Brew-cask line +echo "PROGRESS:20" # Show the progress bar at 20% +echo "Brew cask updates complete" # Show this message above the progress bar + # App Store update commands. -{ echo "Apps"; echo ""; mas upgrade; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +{ echo "Apps"; echo ""; mas upgrade; } >> $LOG catcher Apps +echo "PROGRESS:30" # Show the progress bar at 60% +echo "Mac app store updates complete" # Show this message above the progress bar + # Node update commands. -{ echo "Node"; echo ""; npm install npm@latest -g --silent; npm update --silent; npm prune --silent; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +{ echo "Node"; echo ""; npm install npm@latest -g --silent; npm update --silent; npm prune --silent; } >> $LOG 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 +echo "PROGRESS:40" # Show the progress bar at 40% +echo "Node package updates complete" # Show this message above the progress bar + +# Ruby update commands. Commented out all as they only work in admin. +# { rvm get latest; } >> $LOG # 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 -catcher Ruby -line +# { echo "Ruby"; echo ""; gem update --system; gem update; gem cleanup; } >> $LOG +# catcher Ruby +# line # Atom update commands. -{ echo "Atom"; echo ""; apm update; apm upgrade; apm prune; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +{ echo "Atom"; echo ""; apm update; apm upgrade; apm prune; } >> $LOG catcher Atom line +echo "PROGRESS:50" # Show the progress bar at 50% +echo "Atom package updates complete" # Show this message above the progress bar + # 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 +# { echo "Perl"; echo ""; perlbrew upgrade-perl; perlbrew self-upgrade --silent; perlbrew clean; } >> $LOG # catcher Perl # line # System software update commads. -{ echo "macOS"; echo ""; softwareupdate -ia; } >> ~/Projects/Programming/macupdater/macupdater-log.txt +{ echo "macOS"; echo ""; softwareupdate -ia; } >> $LOG catcher macOS line +echo "PROGRESS:60" # Show the progress bar at 60% +echo "macOS updates complete" # Show this message above the progress bar -echo "" >> ~/Projects/Programming/macupdater/macupdater-log.txt +echo "NOTIFICATION:All local updates complete." + +echo "PROGRESS:70" # Show the progress bar at 70% +echo "Local updates complete" # Show this message above the progress bar + +# Sets the password variable for the admin account +PASSWD="$(osascript -e 'text returned of (display dialog "Please enter a password to continue" default answer "" with icon stop buttons {"Cancel", "Continue"} default button "Continue" with hidden answer)')" + +# An expect script to log into the admin account and run brew updates +/usr/bin/expect -c "spawn login; expect \"Login:\"; send \"mlungisi\r\"; expect \"Password:\"; send \"$PASSWD\r\"; expect \"g:~ mlungisi$\"; send \"{ gem update --system; gem update; gem cleanup; brew update; brew upgrade; brew cleanup; brew cu -ayf --cleanup; }\r\"; expect eof; end" +catcher Admin + +echo "" >> $LOG line +echo "PROGRESS:100" # Show the progress bar at 100% +echo "Script complete" # Show this message above the progress bar +echo "NOTIFICATION:All updates are complete" + # 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 local updates completed." with title "MacUpdater"' +printf "All updates complete. END" >> $LOG -# Opens the admin updater for brew packages -open /Users/gugulethu/Applications/macupdater.app/Contents/Resources/macupdater-admin.app - -exit 0 +echo "QUITAPP"