49
49
50
50
# Ensure Homebrew is owned by my user
51
51
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
53
53
54
54
# Update Homebrew
55
55
echo Update Homebrew >> $LOG 2>&1
@@ -65,7 +65,7 @@ echo Remove any existing Homebrew installed packages >>$LOG 2>&1
65
65
$BREW remove ` $BREW list --formula` --force >> $LOG 2>&1
66
66
67
67
# Install CMake
68
- $BREW install cmake >> $LOG 2>&1
68
+ $BREW install --formula cmake >> $LOG 2>&1
69
69
70
70
# Install SQLite3
71
71
# 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
124
124
cp -v $HOME /Qt/${QTVER} /clang_64/translations/qtxmlpatterns_${i} .qm build/DB\ Browser\ for\ SQLite.app/Contents/translations/ >> $LOG 2>&1
125
125
done
126
126
127
- # Unlock the local security keychain, so signing can be done
128
- security unlock-keychain -p " ${KEYCHAIN_PASSWORD} " " ${HOME} /Library/Keychains/login.keychain"
129
-
130
127
# 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
134
129
135
130
# Make a .dmg file from the .app
136
131
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
146
141
$BREW remove ` $BREW list --formula` --force >> $LOG 2>&1
147
142
148
143
# Install CMake
149
- $BREW install cmake >> $LOG 2>&1
144
+ $BREW install --formula cmake >> $LOG 2>&1
150
145
151
146
# Install SQLCipher
152
147
echo Install SQLCipher >> $LOG 2>&1
173
168
make -j3 >> $LOG 2>&1
174
169
cd .. >> $LOG 2>&1
175
170
176
- # Unlock the local security keychain, so signing can be done
177
- security unlock-keychain -p " ${KEYCHAIN_PASSWORD} " " ${HOME} /Library/Keychains/login.keychain"
178
-
179
171
# Include the depencencies in the .app bundle
180
172
$MACDEPLOYQT build/DB\ Browser\ for\ SQLite.app -verbose=2 -sign-for-notarization=" ${DEV_ID} " >> $LOG 2>&1
181
173
@@ -205,13 +197,8 @@ for i in ar zh_CN zh_TW cs en fr de it ko pl pt ru es uk; do
205
197
cp -v $HOME /Qt/${QTVER} /clang_64/translations/qtxmlpatterns_${i} .qm build/DB\ Browser\ for\ SQLite.app/Contents/translations/ >> $LOG 2>&1
206
198
done
207
199
208
- # Unlock the local security keychain, so signing can be done
209
- security unlock-keychain -p " ${KEYCHAIN_PASSWORD} " " ${HOME} /Library/Keychains/login.keychain"
210
-
211
200
# 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
215
202
216
203
# Make a .dmg file from the .app
217
204
mv build/DB\ Browser\ for\ SQLite.app $HOME /appdmg/ >> $LOG 2>&1
0 commit comments