Mac: Code sign the BOINC installer and uninstaller if we have a valid code signing identity

svn path=/trunk/boinc/; revision=25788
This commit is contained in:
Charlie Fenton 2012-06-22 09:46:26 +00:00
parent d7e71c1914
commit 40eee78d8b
2 changed files with 32 additions and 2 deletions

View File

@ -4464,7 +4464,7 @@ David 20 June 2012
api/
boinc_api.cpp
Charlie 20 June 2012
Charlie 21 June 2012
- Mac: Fix displayed names of BOINC installer, uninstaller, etc.
clientgui/
@ -4474,8 +4474,17 @@ Charlie 20 June 2012
boinc.xcodeproj/
project.pbxproj
David 20 June 2012
David 21 June 2012
- web: server status page should show elapsed time, not CPU time
html/user/
server_status.php
Charlie 22 June 2012
- Mac: Code sign the BOINC installer and uninstaller if we have a
valid code signing identity. Code signing using a registered
Apple Developer ID is necessary for GateKeeper with default
settings to allow running downloaded applications under OS 10.8.
mac_installer/
release_boinc.sh

View File

@ -28,6 +28,7 @@
## updated 11/27/11 by Charlie Fenton for new virtualbox directory
## updated 12/2/11 by Charlie Fenton to restore wrapper and reboot if needed
## updated 1/6/12 by Charlie Fenton to also install VirtualBox
## updated 6/22/12 by Charlie Fenton to code sign the installer and uninstaller
##
## NOTE: This script uses PackageMaker, which is installed as part of the
## XCode developer tools. So you must have installed XCode Developer
@ -41,6 +42,10 @@
## menu: "Product/Buildfor/Build for Archiving", NOT "Product/Archive"
## Usage:
##
## If you wish to code sign the installer and uninstaller, create a file
## ~/BOINCCodeSignIdentity.txt whose first line is the code signing identity
##
## cd to the root directory of the boinc tree, for example:
## cd [path]/boinc
##
@ -291,6 +296,22 @@ sudo chmod -R u+rw-s,g+r-ws,o+r-w ../BOINC_Installer/New_Release_$1_$2_$3/boinc_
cp -fpR $BUILDPATH/SymbolTables/ ../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_macOSX_SymbolTables/
## If you wish to code sign the installer and uninstaller, create a file
## ~/BOINCCodeSignIdentity.txt whose first line is the code signing identity
##
## Code signing using a registered Apple Developer ID is necessary for GateKeeper
## with default settings to allow running downloaded applications under OS 10.8
if [ -e "${HOME}/BOINCCodeSignIdentity.txt" ]; then
exec 8<"${HOME}/BOINCCodeSignIdentity.txt"
read -u 8 SIGNINGIDENTITY
# Code Sign the BOINC installer if we have a signing identity
sudo codesign -f -s "${SIGNINGIDENTITY}" "../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_macOSX_$arch/BOINC Installer.app"
# Code Sign the BOINC uninstaller if we have a signing identity
sudo codesign -f -s "${SIGNINGIDENTITY}" "../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_macOSX_$arch/extras/Uninstall BOINC.app"
fi
cd ../BOINC_Installer/New_Release_$1_$2_$3
## Use ditto instead of zip utility to preserve resource forks and Finder attributes (custom icon, hide extension)
ditto -ck --sequesterRsrc --keepParent boinc_$1.$2.$3_macOSX_$arch boinc_$1.$2.$3_macOSX_$arch.zip