Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,21 @@ jobs:

app "Vista.app"

# brew upgrade replaces the bundle but leaves the old process
# running the stale binary. `uninstall quit:` Cmd-Q's it during the
# upgrade and `postflight` relaunches the freshly installed one, so
# the new version is what's actually running afterwards. (Stanza
# order is Homebrew-canonical: postflight before uninstall.)
postflight do
# Launch on every install (Gordon's call — it's a menu-bar
# indexer, so starting it right away is the point). `|| true`
# keeps a failed launch (e.g. a headless/non-GUI install) from
# aborting the install itself.
system_command "/bin/sh", args: ["-c", "/usr/bin/open -a Vista || true"]
end
Comment thread
GordonBeeming marked this conversation as resolved.

uninstall quit: "com.gordonbeeming.vista"
Comment thread
GordonBeeming marked this conversation as resolved.

zap trash: [
"~/Library/Application Support/Vista",
"~/Library/Caches/com.gordonbeeming.vista",
Expand Down
10 changes: 10 additions & 0 deletions Scripts/package-for-homebrew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ cask "vista" do

app "Vista.app"

# Keep in sync with the CI cask in .github/workflows/build.yml.
# brew upgrade replaces the bundle but leaves the old process running the
# stale binary, so quit it on upgrade and relaunch the freshly installed
# one. `|| true` keeps a failed launch (headless install) non-fatal.
postflight do
system_command "/bin/sh", args: ["-c", "/usr/bin/open -a Vista || true"]
end

uninstall quit: "com.gordonbeeming.vista"

zap trash: [
"~/Library/Application Support/Vista",
"~/Library/Caches/com.gordonbeeming.vista",
Expand Down
Loading