From 0bad4bde8024de55bcc95b7276d1e89962545846 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Thu, 30 Nov 2023 07:39:08 +0000 Subject: [PATCH] Latest --- home/dot_local/bin/executable_backup | 11 +++++++++++ software.yml | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 home/dot_local/bin/executable_backup 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