Skip to content

Commit d2fb4a4

Browse files
committed
Cleaned up the macOS nightly build script a bit
Working ok on macOS Monterey (so far), though we may need to adjust the macOS release we're building on depending upon feedback from our users.
1 parent 3c8af7a commit d2fb4a4

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

installer/macos/build_sqlitebrowser_nightly.sh

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fi
4949

5050
# Ensure Homebrew is owned by my user
5151
echo Ensure Homebrew is owned by my user >>$LOG 2>&1
52-
sudo chown -Rh jc:staff /usr/local >>$LOG 2>&1
52+
sudo chown -Rh $USER: /usr/local >>$LOG 2>&1
5353

5454
# Update Homebrew
5555
echo Update Homebrew >>$LOG 2>&1
@@ -65,7 +65,7 @@ echo Remove any existing Homebrew installed packages >>$LOG 2>&1
6565
$BREW remove `$BREW list --formula` --force >>$LOG 2>&1
6666

6767
# Install CMake
68-
$BREW install cmake >>$LOG 2>&1
68+
$BREW install --formula cmake >>$LOG 2>&1
6969

7070
# Install SQLite3
7171
# Note - `brew tap sqlitebrowser/homebrew-sqlite3` needs to have been run at least once (manually) first
@@ -124,13 +124,8 @@ for i in ar zh_CN zh_TW cs en fr de it ko pl pt ru es uk; do
124124
cp -v $HOME/Qt/${QTVER}/clang_64/translations/qtxmlpatterns_${i}.qm build/DB\ Browser\ for\ SQLite.app/Contents/translations/ >>$LOG 2>&1
125125
done
126126

127-
# Unlock the local security keychain, so signing can be done
128-
security unlock-keychain -p "${KEYCHAIN_PASSWORD}" "${HOME}/Library/Keychains/login.keychain"
129-
130127
# Sign the added libraries
131-
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
132-
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
133-
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
128+
codesign --sign "${DEV_ID}" --verbose --deep --force --keychain "/Library/Keychains/System.keychain" --options runtime --timestamp build/DB\ Browser\ for\ SQLite.app >>$LOG 2>&1
134129

135130
# Make a .dmg file from the .app
136131
mv build/DB\ Browser\ for\ SQLite.app $HOME/appdmg/ >>$LOG 2>&1
@@ -146,7 +141,7 @@ echo Remove any existing Homebrew installed packages >>$LOG 2>&1
146141
$BREW remove `$BREW list --formula` --force >>$LOG 2>&1
147142

148143
# Install CMake
149-
$BREW install cmake >>$LOG 2>&1
144+
$BREW install --formula cmake >>$LOG 2>&1
150145

151146
# Install SQLCipher
152147
echo Install SQLCipher >>$LOG 2>&1
@@ -173,9 +168,6 @@ fi
173168
make -j3 >>$LOG 2>&1
174169
cd .. >>$LOG 2>&1
175170

176-
# Unlock the local security keychain, so signing can be done
177-
security unlock-keychain -p "${KEYCHAIN_PASSWORD}" "${HOME}/Library/Keychains/login.keychain"
178-
179171
# Include the depencencies in the .app bundle
180172
$MACDEPLOYQT build/DB\ Browser\ for\ SQLite.app -verbose=2 -sign-for-notarization="${DEV_ID}">>$LOG 2>&1
181173

@@ -205,13 +197,8 @@ for i in ar zh_CN zh_TW cs en fr de it ko pl pt ru es uk; do
205197
cp -v $HOME/Qt/${QTVER}/clang_64/translations/qtxmlpatterns_${i}.qm build/DB\ Browser\ for\ SQLite.app/Contents/translations/ >>$LOG 2>&1
206198
done
207199

208-
# Unlock the local security keychain, so signing can be done
209-
security unlock-keychain -p "${KEYCHAIN_PASSWORD}" "${HOME}/Library/Keychains/login.keychain"
210-
211200
# Sign the .app
212-
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
213-
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
214-
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
201+
codesign --sign "${DEV_ID}" --verbose --deep --force --keychain "/Library/Keychains/System.keychain" --options runtime --timestamp build/DB\ Browser\ for\ SQLite.app >>$LOG 2>&1
215202

216203
# Make a .dmg file from the .app
217204
mv build/DB\ Browser\ for\ SQLite.app $HOME/appdmg/ >>$LOG 2>&1

0 commit comments

Comments
 (0)