summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2015-05-26 11:54:38 -0400
committerMicah Lee <micah@micahflee.com>2015-05-26 11:55:37 -0400
commit99fd05fa2acc07e5d3aadf1a542cc641e4c6a8c2 (patch)
treef2e23bbbc9bbc4499318bedafe6b6e5d2ae11664
parent26a8d44d3bb87112173823ab60c74ccc212fb41e (diff)
downloadonionshare-99fd05fa2acc07e5d3aadf1a542cc641e4c6a8c2.tar.gz
onionshare-99fd05fa2acc07e5d3aadf1a542cc641e4c6a8c2.zip
make build_osx.sh only codesign when you pass --sign
-rwxr-xr-xinstall/build_osx.sh32
1 files changed, 17 insertions, 15 deletions
diff --git a/install/build_osx.sh b/install/build_osx.sh
index b7f375ed..a1acda51 100755
--- a/install/build_osx.sh
+++ b/install/build_osx.sh
@@ -3,9 +3,6 @@
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
cd $ROOT
-SIGNING_IDENTITY_APP="Developer ID Application: Micah Lee"
-SIGNING_IDENTITY_INSTALLER="Developer ID Installer: Micah Lee"
-
# deleting dist
echo Deleting dist folder
rm -rf $ROOT/dist &>/dev/null 2>&1
@@ -14,17 +11,22 @@ rm -rf $ROOT/dist &>/dev/null 2>&1
echo Building OnionShare.app
python setup.py py2app
-# codesign the .app
-python $ROOT/install/prepare_for_codesign.py
-cd dist
+if [ "$1" = "--sign" ]; then
+ SIGNING_IDENTITY_APP="Developer ID Application: Micah Lee"
+ SIGNING_IDENTITY_INSTALLER="Developer ID Installer: Micah Lee"
+
+ # codesign the .app
+ python $ROOT/install/prepare_for_codesign.py
+ cd dist
-# for some reason --deep fails, so sign each binary individually
-codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/QtCore.framework
-codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/QtGui.framework
-codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/Python.framework
-codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/libssl.1.0.0.dylib
-codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/libcrypto.1.0.0.dylib
-codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/MacOS/python
-codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app
+ # for some reason --deep fails, so sign each binary individually
+ codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/QtCore.framework
+ codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/QtGui.framework
+ codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/Python.framework
+ codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/libssl.1.0.0.dylib
+ codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/libcrypto.1.0.0.dylib
+ codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/MacOS/python
+ codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app
-productbuild --component OnionShare.app /Applications OnionShare.pkg --sign "$SIGNING_IDENTITY_INSTALLER"
+ productbuild --component OnionShare.app /Applications OnionShare.pkg --sign "$SIGNING_IDENTITY_INSTALLER"
+fi