@@ -131,14 +131,24 @@ done
131
131
cp installer/macos/macapp.icns build/DB\ Browser\ for\ SQLite.app/Contents/Resources/ >> $LOG 2>&1
132
132
/usr/libexec/PlistBuddy -c " Set :CFBundleIconFile macapp.icns" build/DB\ Browser\ for\ SQLite.app/Contents/Info.plist >> $LOG 2>&1
133
133
134
- # Sign the added libraries
134
+ # Sign the manually added extensions. Needs to be done prior to the ".app signing" bit below, as that doesn't seem to sign these... which results in notarisation failure later on
135
+ codesign --sign " ${DEV_ID} " --verbose --deep --force --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp build/DB\ Browser\ for\ SQLite.app/Contents/Extensions/fileio.dylib >> $LOG 2>&1
136
+ codesign --sign " ${DEV_ID} " --verbose --deep --force --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp build/DB\ Browser\ for\ SQLite.app/Contents/Extensions/formats.dylib >> $LOG 2>&1
137
+ codesign --sign " ${DEV_ID} " --verbose --deep --force --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp build/DB\ Browser\ for\ SQLite.app/Contents/Extensions/math.dylib >> $LOG 2>&1
138
+
139
+ # Sign the app (again). Needs to be done after the extensions are manually signed (above), else notarisation fails
135
140
codesign --sign " ${DEV_ID} " --verbose --deep --force --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp build/DB\ Browser\ for\ SQLite.app >> $LOG 2>&1
136
141
137
142
# Make a .dmg file from the .app
138
143
mv build/DB\ Browser\ for\ SQLite.app $HOME /appdmg/ >> $LOG 2>&1
139
144
cd $HOME /appdmg >> $LOG 2>&1
140
145
appdmg --quiet nightly.json DB\ Browser\ for\ SQLite-arm64_${DATE} .dmg >> $LOG 2>&1
141
- codesign --sign " ${DEV_ID} " --verbose --deep --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp DB\ Browser\ for\ SQLite-arm64_${DATE} .dmg >> $LOG 2>&1
146
+ codesign --sign " ${DEV_ID} " --verbose --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp DB\ Browser\ for\ SQLite-arm64_${DATE} .dmg >> $LOG 2>&1
147
+
148
+ # Notarise the .app
149
+ security unlock-keychain -p " ${KEYCHAIN_PASSWORD} " db4s.keychain
150
+ xcrun notarytool submit --apple-id " ${APPLE_ID} " --team-id " ${TEAM_ID} " --wait --keychain-profile " ${PROFILE_NAME} " --keychain /Users/jc/Library/Keychains/db4s.keychain-db DB\ Browser\ for\ SQLite-arm64_${DATE} .dmg >> $LOG 2>&1
151
+ xcrun stapler staple DB\ Browser\ for\ SQLite-arm64_${DATE} .dmg >> $LOG 2>&1
142
152
mv DB\ Browser\ for\ SQLite-arm64_${DATE} .dmg $HOME /db4s_nightlies/ >> $LOG 2>&1
143
153
rm -rf $HOME /appdmg/DB\ Browser\ for\ SQLite.app >> $LOG 2>&1
144
154
@@ -211,14 +221,24 @@ done
211
221
cp installer/macos/macapp.icns build/DB\ Browser\ for\ SQLite.app/Contents/Resources/ >> $LOG 2>&1
212
222
/usr/libexec/PlistBuddy -c " Set :CFBundleIconFile macapp.icns" build/DB\ Browser\ for\ SQLite.app/Contents/Info.plist >> $LOG 2>&1
213
223
214
- # Sign the .app
224
+ # Sign the manually added extensions. Needs to be done prior to the ".app signing" bit below, as that doesn't seem to sign these... which results in notarisation failure later on
225
+ codesign --sign " ${DEV_ID} " --verbose --deep --force --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp build/DB\ Browser\ for\ SQLite.app/Contents/Extensions/fileio.dylib >> $LOG 2>&1
226
+ codesign --sign " ${DEV_ID} " --verbose --deep --force --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp build/DB\ Browser\ for\ SQLite.app/Contents/Extensions/formats.dylib >> $LOG 2>&1
227
+ codesign --sign " ${DEV_ID} " --verbose --deep --force --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp build/DB\ Browser\ for\ SQLite.app/Contents/Extensions/math.dylib >> $LOG 2>&1
228
+
229
+ # Sign the app (again). Needs to be done after the extensions are manually signed (above), else notarisation fails
215
230
codesign --sign " ${DEV_ID} " --verbose --deep --force --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp build/DB\ Browser\ for\ SQLite.app >> $LOG 2>&1
216
231
217
232
# Make a .dmg file from the .app
218
233
mv build/DB\ Browser\ for\ SQLite.app $HOME /appdmg/ >> $LOG 2>&1
219
234
cd $HOME /appdmg >> $LOG 2>&1
220
235
appdmg --quiet nightly.json DB\ Browser\ for\ SQLite-sqlcipher-arm64_${DATE} .dmg >> $LOG 2>&1
221
- codesign --sign " ${DEV_ID} " --verbose --deep --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp DB\ Browser\ for\ SQLite-sqlcipher-arm64_${DATE} .dmg >> $LOG 2>&1
236
+ codesign --sign " ${DEV_ID} " --verbose --keychain " /Library/Keychains/System.keychain" --options runtime --timestamp DB\ Browser\ for\ SQLite-sqlcipher-arm64_${DATE} .dmg >> $LOG 2>&1
237
+
238
+ # Notarise the .app
239
+ security unlock-keychain -p " ${KEYCHAIN_PASSWORD} " db4s.keychain
240
+ xcrun notarytool submit --apple-id " ${APPLE_ID} " --team-id " ${TEAM_ID} " --wait --keychain-profile " ${PROFILE_NAME} " --keychain /Users/jc/Library/Keychains/db4s.keychain-db DB\ Browser\ for\ SQLite-sqlcipher-arm64_${DATE} .dmg >> $LOG 2>&1
241
+ xcrun stapler staple DB\ Browser\ for\ SQLite-sqlcipher-arm64_${DATE} .dmg >> $LOG 2>&1
222
242
mv DB\ Browser\ for\ SQLite-sqlcipher-arm64_${DATE} .dmg $HOME /db4s_nightlies/ >> $LOG 2>&1
223
243
rm -rf $HOME /appdmg/DB\ Browser\ for\ SQLite.app >> $LOG 2>&1
224
244
0 commit comments