Skip to content

Commit a00f2a7

Browse files
committed
Merge branch 'master' of https://github.com/sequelpro/sequelpro
2 parents 2b638f8 + 6ecd8ee commit a00f2a7

2 files changed

Lines changed: 35 additions & 10 deletions

File tree

Resources/Plists/Info.plist

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,31 @@
199199
<key>x86_64</key>
200200
<string>10.6.0</string>
201201
</dict>
202+
203+
<key>NSAppTransportSecurity</key>
204+
<dict>
205+
<key>NSExceptionDomains</key>
206+
<dict>
207+
<key>sequelpro.com</key>
208+
<dict>
209+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
210+
<false/>
211+
<key>NSExceptionRequiresForwardSecrecy</key>
212+
<false/>
213+
<key>NSExceptionMinimumTLSVersion</key>
214+
<string>TLSv1.0</string>
215+
<key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
216+
<false/>
217+
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
218+
<false/>
219+
<key>NSThirdPartyExceptionMinimumTLSVersion</key>
220+
<string>TLSv1.0</string>
221+
<key>NSRequiresCertificateTransparency</key>
222+
<false/>
223+
</dict>
224+
</dict>
225+
</dict>
226+
202227
<key>NSAppleScriptEnabled</key>
203228
<true/>
204229
<key>NSHumanReadableCopyright</key>
@@ -240,7 +265,7 @@
240265
<key>SUEnableSystemProfiling</key>
241266
<true/>
242267
<key>SUFeedURL</key>
243-
<string>https://www.sequelpro.com/appcast/app-releases.xml</string>
268+
<string>https://sequelpro.com/appcast/app-releases.xml</string>
244269
<key>SUPublicDSAKeyFile</key>
245270
<string>sparkle-public-key.pem</string>
246271
<key>UTExportedTypeDeclarations</key>

Scripts/nightlybuildscript.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ NIGHTLY_KEYCHAIN_PASSWORD='PASSWORD NOT COMMITTED'
1919
REVISION_HASH=`echo "$1" | grep "\([0-9a-f]*\)"`
2020
if [ "$REVISION_HASH" == "" ]
2121
then
22-
echo "Unable to extract revision hash from first argument; cancelling nightly build." >&2
22+
echo "Unable to extract revision hash from first argument; cancelling nightly build (git rev-parse HEAD)." >&2
2323
exit 1
2424
fi
2525
SHORT_HASH=${REVISION_HASH:0:10}
@@ -90,10 +90,10 @@ find languagetranslations/Resources \( -name "*.lproj" \) | while read FILE; do
9090
cp -R "$FILE" "Sequel Pro.app/Contents/Resources/"
9191
done
9292

93-
echo "Copying nightly icon"
93+
#echo "Copying nightly icon"
9494

9595
# Copy in the nightly icon
96-
cp -f "$NIGHTLY_ICON_LOC" Sequel\ Pro.app/Contents/Resources/appicon.icns
96+
#cp -f "$NIGHTLY_ICON_LOC" Sequel\ Pro.app/Contents/Resources/appicon.icns
9797

9898
echo "Updating version strings"
9999

@@ -103,7 +103,7 @@ php -r '$infoplistloc = "'$BUILD_DIR'/Sequel Pro.app/Contents/Info.plist";
103103
$infoplist = preg_replace("/(\<key\>CFBundleShortVersionString\<\/key\>\s*\n?\r?\s*\<string\>)[^<]*(\<\/string\>)/i", "\\1Nightly build for revision '$SHORT_HASH'\\2", $infoplist);
104104
$infoplist = preg_replace("/(\<key\>CFBundleVersion\<\/key\>\s*\n?\r?\s*)\<string\>[^<]*(\<\/string\>)/i", "\\1<string>'$NUMERIC_REVISION'\\2", $infoplist);
105105
$infoplist = preg_replace("/(\<key\>NSHumanReadableCopyright\<\/key\>\s*\n?\r?\s*\<string\>)[^<]*(\<\/string\>)/i", "\\1Nightly build for revision '$SHORT_HASH'\\2", $infoplist);
106-
$infoplist = preg_replace("/(\<key\>SUFeedURL\<\/key\>\s*\n?\r?\s*\<string\>)[^<]*(\<\/string\>)/i", "\\1http://nightly.sequelpro.com/nightly-app-releases.php\\2", $infoplist);
106+
$infoplist = preg_replace("/(\<key\>SUFeedURL\<\/key\>\s*\n?\r?\s*\<string\>)[^<]*(\<\/string\>)/i", "\\1https://sequelpro.com/nightly/nightly-app-releases.php\\2", $infoplist);
107107
file_put_contents($infoplistloc, $infoplist);'
108108

109109
# Update versions in localised string files
@@ -117,10 +117,10 @@ php -r '$englishstringsloc = "/'$BUILD_DIR'/Sequel Pro.app/Contents/Resources/En
117117
echo "Signing build..."
118118

119119
# Code sign and verify the nightly
120-
security unlock-keychain -p "$NIGHTLY_KEYCHAIN_PASSWORD" "$NIGHTLY_KEYCHAIN_LOC"
121-
codesign -f --keychain "$NIGHTLY_KEYCHAIN_LOC" -s 'Developer ID Application: MJ Media' -r "../../Resources/sprequirement.bin" "Sequel Pro.app/Contents/Resources/SequelProTunnelAssistant"
122-
codesign -f --keychain "$NIGHTLY_KEYCHAIN_LOC" -s 'Developer ID Application: MJ Media' -r "../../Resources/sprequirement.bin" "Sequel Pro.app"
123-
security lock-keychain "$NIGHTLY_KEYCHAIN_LOC"
120+
#security unlock-keychain -p "$NIGHTLY_KEYCHAIN_PASSWORD" "$NIGHTLY_KEYCHAIN_LOC"
121+
codesign -f --keychain "$NIGHTLY_KEYCHAIN_LOC" -s 'Developer ID Application: MJ Media' -r $GIT_DIR"/Resources/spframeworkrequirement.bin" "Sequel Pro.app/Contents/Resources/SequelProTunnelAssistant"
122+
codesign -f --keychain "$NIGHTLY_KEYCHAIN_LOC" -s 'Developer ID Application: MJ Media' -r $GIT_DIR"/Resources/sprequirement.bin" "Sequel Pro.app"
123+
#security lock-keychain "$NIGHTLY_KEYCHAIN_LOC"
124124
VERIFYERRORS=`codesign --verify "Sequel Pro.app" 2>&1`
125125
VERIFYERRORS+=`codesign --verify "Sequel Pro.app/Contents/Resources/SequelProTunnelAssistant" 2>&1`
126126
if [ "$VERIFYERRORS" != '' ]
@@ -156,7 +156,7 @@ echo "Disk image ready (hashed as $SIGNATURE)"
156156
echo "Uploading disk image..."
157157

158158
# Upload the disk image
159-
scp -q -P 32100 Sequel_Pro_r"$SHORT_HASH".dmg spnightlyuploader@sequelpro.com:nightlybuilds
159+
scp -P 32100 Sequel_Pro_r"$SHORT_HASH".dmg spnightlyuploader@sequelpro.com:nightlybuilds
160160
RETURNVALUE=$?
161161
if [ $RETURNVALUE -eq 0 ]
162162
then

0 commit comments

Comments
 (0)