Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Backblaze Uninstaller and switch to latest version as Backblaze downloads are unversioned #88039

Closed
wants to merge 2 commits into from
Closed
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: 3 additions & 12 deletions Casks/backblaze.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
cask "backblaze" do
version "7.0.2.464"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s by having a version that brew upgrade can work properly. You’re removing that ability.

sha256 "4956a72674d1901a6ec5a98ec0089ebfde743c5bb63e7644c3103e113e26d6d8"
version :latest
sha256 :no_check

url "https://secure.backblaze.com/mac/install_backblaze.dmg"
appcast "https://secure.backblaze.com/api/clientversion.xml",
Copy link
Member

@vitorgalvao vitorgalvao Aug 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole point of the appcast is that we can detect when updates are available. It’s never* correct to delete a functioning appcast.

* It can happen, but it’s so rare it happened maybe once in almost a decade.

must_contain: "mac_version=\"#{version}\""
name "Backblaze"
homepage "https://backblaze.com/"

installer manual: "Backblaze Installer.app"

uninstall launchctl: [
"com.backblaze.bzserv",
"com.backblaze.bzbmenu",
],
delete: [
"#{appdir}/Backblaze.app",
"/Library/PreferencePanes/BackblazeBackup.prefPane",
]
uninstall script: "#{staged_path}/Backblaze Uninstaller.app/Contents/MacOS/Backblaze Uninstaller"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a script, it will call a GUI which complicates automation and which we do not want until we can do it properly.


zap trash: [
"/Library/Backblaze.bzpkg",
Expand Down