From 4b5db340ca2ccc075fb3d148599d11dd506935a4 Mon Sep 17 00:00:00 2001 From: Jason Morganson <128727+jasonmorganson@users.noreply.github.com> Date: Wed, 8 Nov 2023 17:40:39 -0500 Subject: [PATCH 1/4] Set brew bundle file location --- dot_profile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_profile b/dot_profile index 6d29fa9b..c605e779 100644 --- a/dot_profile +++ b/dot_profile @@ -17,3 +17,7 @@ export XDG_VIDEOS_DIR="$HOME/Videos" # PATH export PATH="$HOME/.local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin" + +# Homebrew +export HOMEBREW_BUNDLE_FILE="~/Library/Mobile\ Documents/com~apple~CloudDocs/Homebrew/Brewfile" + From 01e769ea09781eee9ff499bde741e56328bf09aa Mon Sep 17 00:00:00 2001 From: Jason Morganson <128727+jasonmorganson@users.noreply.github.com> Date: Wed, 8 Nov 2023 18:00:05 -0500 Subject: [PATCH 2/4] Configure topgrade to dump the brew bundle --- dot_config/topgrade/topgrade.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 dot_config/topgrade/topgrade.toml diff --git a/dot_config/topgrade/topgrade.toml b/dot_config/topgrade/topgrade.toml new file mode 100644 index 00000000..e63a98cc --- /dev/null +++ b/dot_config/topgrade/topgrade.toml @@ -0,0 +1,5 @@ +[misc] + +# Commands to run after anything +[post_commands] +"Update brew bundle" = "/opt/homebrew/bin/brew bundle dump --force --file /Users/jasonmorganson/Library/Mobile Documents/com~apple~CloudDocs/Homebrew/Brewfile" From 9ed808c0598d73b49e1ec05ec12690a5f50539ad Mon Sep 17 00:00:00 2001 From: Jason Morganson <128727+jasonmorganson@users.noreply.github.com> Date: Wed, 8 Nov 2023 18:19:11 -0500 Subject: [PATCH 3/4] Skip end notification --- dot_config/topgrade/topgrade.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot_config/topgrade/topgrade.toml b/dot_config/topgrade/topgrade.toml index e63a98cc..62c7e3f1 100644 --- a/dot_config/topgrade/topgrade.toml +++ b/dot_config/topgrade/topgrade.toml @@ -1,5 +1,8 @@ [misc] +# Skip sending a notification at the end of a run (default: false) +skip_notify = true + # Commands to run after anything [post_commands] "Update brew bundle" = "/opt/homebrew/bin/brew bundle dump --force --file /Users/jasonmorganson/Library/Mobile Documents/com~apple~CloudDocs/Homebrew/Brewfile" From 837235e20bcff5826abbae9cdc6dbfaff02cc397 Mon Sep 17 00:00:00 2001 From: Jason Morganson <128727+jasonmorganson@users.noreply.github.com> Date: Wed, 8 Nov 2023 18:04:27 -0500 Subject: [PATCH 4/4] Auto run topgrade --- .../io.github.topgrade-rs.topgrade.plist | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 private_Library/LaunchAgents/io.github.topgrade-rs.topgrade.plist diff --git a/private_Library/LaunchAgents/io.github.topgrade-rs.topgrade.plist b/private_Library/LaunchAgents/io.github.topgrade-rs.topgrade.plist new file mode 100644 index 00000000..66668224 --- /dev/null +++ b/private_Library/LaunchAgents/io.github.topgrade-rs.topgrade.plist @@ -0,0 +1,25 @@ + + + + + Label + io.github.topgrade-rs.topgrade + + ProgramArguments + + /opt/homebrew/bin/topgrade + + + StartInterval + 10800 + + RunAtLoad + + + StandardErrorPath + /tmp/io.github.topgrade-rs.topgrade/err + + StandardOutPath + /tmp/io.github.topgrade-rs.topgrade/out + +