From e1180428ed3e7634fe1596103511fbb1da05f228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Eduardo?= Date: Wed, 31 May 2017 18:08:31 -0500 Subject: first commit --- mvc/osx/autoupdate.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 mvc/osx/autoupdate.py (limited to 'mvc/osx/autoupdate.py') diff --git a/mvc/osx/autoupdate.py b/mvc/osx/autoupdate.py new file mode 100644 index 0000000..7b17d47 --- /dev/null +++ b/mvc/osx/autoupdate.py @@ -0,0 +1,9 @@ +from Foundation import * + +def load_sparkle_framework(): + bundlePath = '%s/Sparkle.framework' % Foundation.NSBundle.mainBundle().privateFrameworksPath() + objc.loadBundle('Sparkle', globals(), bundle_path=bundlePath) + +def initialize(): + load_sparkle_framework() + SUUpdater.sharedUpdater().setAutomaticallyChecksForUpdates_(YES) -- cgit v1.2.3