aboutsummaryrefslogtreecommitdiffstats
path: root/lvc/osx/autoupdate.py
diff options
context:
space:
mode:
Diffstat (limited to 'lvc/osx/autoupdate.py')
-rw-r--r--lvc/osx/autoupdate.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lvc/osx/autoupdate.py b/lvc/osx/autoupdate.py
new file mode 100644
index 0000000..7b17d47
--- /dev/null
+++ b/lvc/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)