aboutsummaryrefslogtreecommitdiffstats
path: root/mvc/osx
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
downloadlibrevideoconverter-e1180428ed3e7634fe1596103511fbb1da05f228.tar.lz
librevideoconverter-e1180428ed3e7634fe1596103511fbb1da05f228.tar.xz
librevideoconverter-e1180428ed3e7634fe1596103511fbb1da05f228.zip
first commit
Diffstat (limited to 'mvc/osx')
-rw-r--r--mvc/osx/__init__.py0
-rw-r--r--mvc/osx/app_main.py12
-rw-r--r--mvc/osx/autoupdate.py9
3 files changed, 21 insertions, 0 deletions
diff --git a/mvc/osx/__init__.py b/mvc/osx/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mvc/osx/__init__.py
diff --git a/mvc/osx/app_main.py b/mvc/osx/app_main.py
new file mode 100644
index 0000000..ef52ff6
--- /dev/null
+++ b/mvc/osx/app_main.py
@@ -0,0 +1,12 @@
+import os
+import sys
+
+from mvc.osx import autoupdate
+from mvc.widgets import app
+from mvc.widgets import initialize
+from mvc.ui.widgets import Application
+
+# run the app
+autoupdate.initialize()
+app.widgetapp = Application()
+initialize(app.widgetapp)
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)