security-growler icon indicating copy to clipboard operation
security-growler copied to clipboard

Check for updates / auto-update

Open czekaj opened this issue 8 years ago • 4 comments

It would be great if Security Growler was periodically checking for updates and maybe even automatically updated itself.

czekaj avatar Apr 27 '16 22:04 czekaj

The easiest way to do this without moving away from Platypus would be to add a new menubar item that downloads the most recent version and replaces the app while keeping settings.py intact.

Rough pseudocode:

# Check if more recent version is available

curl https://github.com/pirate/security-growler/raw/master/Security%20Growler.app.zip > "/Applications/New-Security Growler.app"
# OR
curl https://github.com/pirate/security-growler/raw/master/Security%20Growler%20Light.app.zip > "/Applications/New-Security Growler Light.app"

cp "/Applications/Security Growler*.app/Contents/Resources/settings.py" "/Applications/New-Security Growler*.app/Contents/Resources/settings.py"
mv "/Applications/Security Growler*.app" ~/.Trash/
mv "/Applications/New-Security Growler*.app" > "/Applications/Security Growler.app"
open "/Applications/Security Growler.app"
exit 0

pirate avatar Apr 28 '16 00:04 pirate

a hack around this is my homebrew-cask package brew cask install homebrew-cask

I would avoid things like sparkle or autoupdating; warnings are great, but I don't want a security application updating without my explicit permission.

BenjaminHCCarr avatar Nov 09 '16 18:11 BenjaminHCCarr

@BenjaminHCCarr really? I usually prefer my security application auto-update, so that I get security patches fast (noisily of course, I don't want them doing it silently in the background). I was thinking sparkle, with auto-updating turned off by default could be a good compromise.

pirate avatar Nov 09 '16 18:11 pirate

FYI as a temporary helper, v2.3 has a new menu item called "Check for updates", which just takes you to the releases page so you can manually see if a new version is available. It's not a full solution since it's manual, but it makes it easier for now. screen shot 2016-12-19 at 4 59 54 pm

pirate avatar Dec 19 '16 22:12 pirate