diff --git a/home/dot_local/bin/executable_backup b/home/dot_local/bin/executable_backup new file mode 100644 index 00000000..170b870c --- /dev/null +++ b/home/dot_local/bin/executable_backup @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +backupMacPrefs() { + if [ -d /Applications ] && [ -d /System ]; then + if command -v macprefs > /dev/null; then + macprefs backup -t system_preferences startup_items shared_file_lists preferences app_store_preferences internet_accounts + fi + fi +} + +backupMacPrefs diff --git a/software.yml b/software.yml index dc35cb60..5904e4dd 100644 --- a/software.yml +++ b/software.yml @@ -10728,14 +10728,14 @@ softwarePackages: xcode: _deps:script:darwin: - xcodeinstall - _bin: xcodebuild + _bin: xcode _desc: "[Xcode](https://developer.apple.com/xcode/) is Apple's integrated development environment for macOS, used to develop software for macOS, iOS, iPadOS, watchOS, and tvOS." _docs: https://developer.apple.com/documentation/xcode _github: false _home: https://developer.apple.com/xcode/ _name: XCode _post: sudo xcodebuild -license accept && sudo xcodebuild -runFirstLaunch - _when:darwin: '! test -d /Applications/Xcode.app' + _when:script:darwin: '! test -d /Applications/Xcode.app' mas: 497799835 script:darwin: | ### Load AWS secrets