mirror of
https://github.com/onionshare/onionshare.git
synced 2025-04-28 03:06:07 -04: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,6 +11,10 @@ rm -rf $ROOT/dist &>/dev/null 2>&1
|
|||||||
echo Building OnionShare.app
|
echo Building OnionShare.app
|
||||||
python setup.py py2app
|
python setup.py py2app
|
||||||
|
|
||||||
|
if [ "$1" = "--sign" ]; then
|
||||||
|
SIGNING_IDENTITY_APP="Developer ID Application: Micah Lee"
|
||||||
|
SIGNING_IDENTITY_INSTALLER="Developer ID Installer: Micah Lee"
|
||||||
|
|
||||||
# codesign the .app
|
# codesign the .app
|
||||||
python $ROOT/install/prepare_for_codesign.py
|
python $ROOT/install/prepare_for_codesign.py
|
||||||
cd dist
|
cd dist
|
||||||
@ -28,3 +29,4 @@ codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app/Contents/
|
|||||||
codesign -vvvv -s "Developer ID Application: Micah Lee" OnionShare.app
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user