osx: Implement auto-upgrade function using Sparkle
During the upgrade, NFD and ndn-autoupdate will be stopped (and, if
enabled, automatically started with new versions).
Change-Id: I010ae4a8aa6f99a0039d58065ab7eb0c9189a979
diff --git a/make-osx-bundle.py b/make-osx-bundle.py
index b7f98d4..6677d32 100755
--- a/make-osx-bundle.py
+++ b/make-osx-bundle.py
@@ -388,15 +388,13 @@
a.copy_etc(['nfd.conf'])
a.set_min_macosx_version('%s.0' % MIN_SUPPORTED_VERSION)
a.macdeployqt()
- a.copy_framework("build/Sparkle.framework")
+ a.copy_framework("osx/Frameworks/Sparkle.framework")
a.done()
# Sign our binaries, etc.
if options.codesign:
print ' * Signing binaries with identity `%s\'' % options.codesign
- binaries = (a.bundle)
-
- codesign(binaries)
+ codesign(a.bundle)
print ''
# Create diskimage
@@ -406,3 +404,8 @@
d.symlink('/Applications', '/Applications')
d.copy('build/%s/NDN.app' % MIN_SUPPORTED_VERSION, '/NDN.app')
d.create()
+
+ if options.codesign:
+ print ' * Signing .dmg with identity `%s\'' % options.codesign
+ codesign(fn)
+ print ''