mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-26 09:21:23 -05:00
make build_osx.sh only codesign when you pass --sign
This commit is contained in:
parent
26a8d44d3b
commit
99fd05fa2a
@ -3,9 +3,6 @@
|
|||||||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
||||||
cd $ROOT
|
cd $ROOT
|
||||||
|
|
||||||
SIGNING_IDENTITY_APP="Developer ID Application: Micah Lee"
|
|
||||||
SIGNING_IDENTITY_INSTALLER="Developer ID Installer: Micah Lee"
|
|
||||||
|
|
||||||
# deleting dist
|
# deleting dist
|
||||||
echo Deleting dist folder
|
echo Deleting dist folder
|
||||||
rm -rf $ROOT/dist &>/dev/null 2>&1
|
rm -rf $ROOT/dist &>/dev/null 2>&1
|
||||||
@ -14,17 +11,22 @@ rm -rf $ROOT/dist &>/dev/null 2>&1
|
|||||||
echo Building OnionShare.app
|
echo Building OnionShare.app
|
||||||
python setup.py py2app
|
python setup.py py2app
|
||||||
|
|
||||||
# codesign the .app
|
if [ "$1" = "--sign" ]; then
|
||||||
python $ROOT/install/prepare_for_codesign.py
|
SIGNING_IDENTITY_APP="Developer ID Application: Micah Lee"
|
||||||
cd dist
|
SIGNING_IDENTITY_INSTALLER="Developer ID Installer: Micah Lee"
|
||||||
|
|
||||||
# for some reason --deep fails, so sign each binary individually
|
# codesign the .app
|
||||||
codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/QtCore.framework
|
python $ROOT/install/prepare_for_codesign.py
|
||||||
codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/Frameworks/QtGui.framework
|
cd dist
|
||||||
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"
|
# 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"
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user