Skip to content

Commit

Permalink
Merge pull request #3247 from sequelpro/update-dist-cert
Browse files Browse the repository at this point in the history
Update distribution certificate name and make some minor path tweaks to the nightly build script
  • Loading branch information
stuconnolly committed Oct 20, 2018
2 parents f64cbb7 + 654c61a commit 962f548
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Scripts/build.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ dev_sign_resource()


dist_sign_framework() dist_sign_framework()
{ {
codesign -f -s 'Developer ID Application: MJ Media' -r "${SRCROOT}/Resources/spframeworkrequirement.bin" "$1" 2> /dev/null codesign -f -s 'Developer ID Application: MJ Media (Y48LQG59RS)' -r "${SRCROOT}/Resources/spframeworkrequirement.bin" "$1" 2> /dev/null
} }


dist_sign_resource() dist_sign_resource()
{ {
codesign -f -s 'Developer ID Application: MJ Media' -r "${SRCROOT}/Resources/sprequirement.bin" "$1" 2> /dev/null codesign -f -s 'Developer ID Application: MJ Media (Y48LQG59RS)' -r "${SRCROOT}/Resources/sprequirement.bin" "$1" 2> /dev/null
} }


verify_signing() verify_signing()
Expand Down
16 changes: 8 additions & 8 deletions Scripts/nightlybuildscript.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
# Compiling this script with shc is quite straightforward - /usr/local/bin/shc -T -f <filename> , then move. # Compiling this script with shc is quite straightforward - /usr/local/bin/shc -T -f <filename> , then move.


# Hacky constants # Hacky constants
GIT_DIR=/Users/spbuildbot/buildbot/sequel-pro-10_7/build/ GIT_DIR=/Users/spbuildbot/buildbot/sequel-pro/build/
BUILD_DIR=/Users/spbuildbot/buildbot/sequel-pro-10_7/build/build/Release BUILD_DIR=/Users/spbuildbot/buildbot/sequel-pro/build/build/Release
PRIVATE_KEY_LOC='LOCATION NOT COMMITTED' PRIVATE_KEY_LOC='LOCATION NOT COMMITTED'
NIGHTLY_ICON_LOC=/Users/spbuildbot/Documents/nightly-icon.icns NIGHTLY_ICON_LOC=/Users/spbuildbot/buildbot/sequel-pro/build/Resources/Images/appIcon.icns
NIGHTLY_KEYCHAIN_LOC=/Users/spbuildbot/Library/Keychains/spnightly.keychain NIGHTLY_KEYCHAIN_LOC=/Users/spbuildbot/Library/Keychains/spnightly.keychain-db
NIGHTLY_KEYCHAIN_PASSWORD='PASSWORD NOT COMMITTED' NIGHTLY_KEYCHAIN_PASSWORD='PASSWORD NOT COMMITTED'


# Ensure a revision hash was passed in # Ensure a revision hash was passed in
Expand Down Expand Up @@ -117,10 +117,10 @@ php -r '$englishstringsloc = "/'$BUILD_DIR'/Sequel Pro.app/Contents/Resources/En
echo "Signing build..." echo "Signing build..."


# Code sign and verify the nightly # Code sign and verify the nightly
#security unlock-keychain -p "$NIGHTLY_KEYCHAIN_PASSWORD" "$NIGHTLY_KEYCHAIN_LOC" security unlock-keychain -p "$NIGHTLY_KEYCHAIN_PASSWORD" "$NIGHTLY_KEYCHAIN_LOC"
codesign -f --keychain "$NIGHTLY_KEYCHAIN_LOC" -s 'Developer ID Application: MJ Media' -r $GIT_DIR"/Resources/spframeworkrequirement.bin" "Sequel Pro.app/Contents/Resources/SequelProTunnelAssistant" codesign -f --keychain "$NIGHTLY_KEYCHAIN_LOC" -s 'Developer ID Application: MJ Media (Y48LQG59RS)' -r $GIT_DIR"/Resources/spframeworkrequirement.bin" "Sequel Pro.app/Contents/Resources/SequelProTunnelAssistant"
codesign -f --keychain "$NIGHTLY_KEYCHAIN_LOC" -s 'Developer ID Application: MJ Media' -r $GIT_DIR"/Resources/sprequirement.bin" "Sequel Pro.app" codesign -f --keychain "$NIGHTLY_KEYCHAIN_LOC" -s 'Developer ID Application: MJ Media (Y48LQG59RS)' -r $GIT_DIR"/Resources/sprequirement.bin" "Sequel Pro.app"
#security lock-keychain "$NIGHTLY_KEYCHAIN_LOC" security lock-keychain "$NIGHTLY_KEYCHAIN_LOC"
VERIFYERRORS=`codesign --verify "Sequel Pro.app" 2>&1` VERIFYERRORS=`codesign --verify "Sequel Pro.app" 2>&1`
VERIFYERRORS+=`codesign --verify "Sequel Pro.app/Contents/Resources/SequelProTunnelAssistant" 2>&1` VERIFYERRORS+=`codesign --verify "Sequel Pro.app/Contents/Resources/SequelProTunnelAssistant" 2>&1`
if [ "$VERIFYERRORS" != '' ] if [ "$VERIFYERRORS" != '' ]
Expand Down

0 comments on commit 962f548

Please sign in to comment.