From 5cd112f2eb87a0654cded7b2a6b3b59beddede42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Touceda?= Date: Thu, 19 Jun 2014 15:27:03 -0300 Subject: Make signing work on OSX --- bundler/actions.py | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/bundler/actions.py b/bundler/actions.py index 0e5b004..2178597 100644 --- a/bundler/actions.py +++ b/bundler/actions.py @@ -375,13 +375,15 @@ class PLister(Action): CFBundleInfoDictionaryVersion 6.0 CFBundleName - Bitmask + Bitmask CFBundlePackageType APPL CFBundleShortVersionString 1 LSBackgroundOnly + CFBundleIdentifier + se.leap.bitmask """.split("\n") @@ -599,12 +601,9 @@ class PycRemover(Action): @skippable def run(self): print "Removing .pyc files..." - if IS_WIN: - files = find(self._basedir, "-name", "*.pyc").strip().splitlines() - for f in files: - rm(f) - else: - find(self._basedir, "-name", "\"*.pyc\"", "-delete") + files = find(self._basedir, "-name", "*.pyc").strip().splitlines() + for f in files: + rm(f) print "Done" @@ -657,21 +656,6 @@ class SignIt(Action): @skippable def run(self, identity): - print "Signing main structure, this will take a while..." - main_app = os.path.join(self._basedir, - "Bitmask", - "Bitmask.app") - codesign("-s", identity, "--deep", main_app) - print "Done" - print "Signing tuntap installer..." - tuntap_app = os.path.join(self._basedir, - "Bitmask", - "Bitmask.app", - "Contents", - "Resources", - "tuntap-installer.app") - codesign("-s", identity, "--deep", tuntap_app) - print "Done" print "Signing tuntap kext..." kext = os.path.join(self._basedir, "Bitmask", @@ -684,3 +668,18 @@ class SignIt(Action): "tun.kext") codesign("-s", identity, "--deep", kext) print "Done" + print "Signing tuntap installer..." + tuntap_app = os.path.join(self._basedir, + "Bitmask", + "Bitmask.app", + "Contents", + "Resources", + "tuntap-installer.app") + codesign("-s", identity, "--deep", tuntap_app) + print "Done" + print "Signing main structure, this will take a while..." + main_app = os.path.join(self._basedir, + "Bitmask", + "Bitmask.app") + print codesign("-s", identity, "--force", "--deep", "--verbose", main_app) + print "Done" -- cgit v1.2.3