aboutsummaryrefslogtreecommitdiffstats
path: root/mvc/osx/autoupdate.py
diff options
context:
space:
mode:
authorJesús Eduardo <heckyel@hyperbola.info>2017-05-31 18:08:31 -0500
committerJesús Eduardo <heckyel@hyperbola.info>2017-05-31 18:08:31 -0500
commite1180428ed3e7634fe1596103511fbb1da05f228 (patch)
tree13de9592bcde7050b089b9644839668024c518b3 /mvc/osx/autoupdate.py
downloadlibrevideoconverter-e1180428ed3e7634fe1596103511fbb1da05f228.tar.lz
librevideoconverter-e1180428ed3e7634fe1596103511fbb1da05f228.tar.xz
librevideoconverter-e1180428ed3e7634fe1596103511fbb1da05f228.zip
first commit
Diffstat (limited to 'mvc/osx/autoupdate.py')
-rw-r--r--mvc/osx/autoupdate.py9
1 files changed, 9 insertions, 0 deletions
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)