Navigation Menu

Skip to content

Commit

Permalink
Update distribution certificate name and make some minor path tweaks …
Browse files Browse the repository at this point in the history
…to the nightly build script
  • Loading branch information
rowanbeentje committed Oct 20, 2018
1 parent f9f6908 commit 654c61a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Scripts/build.sh
Expand Up @@ -55,12 +55,12 @@ dev_sign_resource()

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()
{
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()
Expand Down
18 changes: 9 additions & 9 deletions Scripts/nightlybuildscript.sh
Expand Up @@ -8,11 +8,11 @@
# Compiling this script with shc is quite straightforward - /usr/local/bin/shc -T -f <filename> , then move.

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

# 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..."

# Code sign and verify the nightly
#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' -r $GIT_DIR"/Resources/sprequirement.bin" "Sequel Pro.app"
#security lock-keychain "$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 (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 (Y48LQG59RS)' -r $GIT_DIR"/Resources/sprequirement.bin" "Sequel Pro.app"
security lock-keychain "$NIGHTLY_KEYCHAIN_LOC"
VERIFYERRORS=`codesign --verify "Sequel Pro.app" 2>&1`
VERIFYERRORS+=`codesign --verify "Sequel Pro.app/Contents/Resources/SequelProTunnelAssistant" 2>&1`
if [ "$VERIFYERRORS" != '' ]
Expand Down Expand Up @@ -186,4 +186,4 @@ then
exit 1
fi

echo "Done!"
echo "Done!"

0 comments on commit 654c61a

Please sign in to comment.