77 required : true
88 DEV_ID :
99 required : true
10+ GH_TOKEN :
11+ required : true
1012 KEYCHAIN_PATH :
1113 required : true
1214 KEYCHAIN_PW :
@@ -32,32 +34,26 @@ runs:
3234 shell : bash
3335 run : find build -name "DB Browser for SQL*.app" -exec /opt/homebrew/opt/db4subqt@5/bin/macdeployqt {} -sign-for-notarization="${{ inputs.DEV_ID }}" \;
3436
35- - name : Add the extension to the app bundle
37+ - name : Add the 'nalgeon/sqlean' extension to the app bundle
3638 shell : bash
3739 run : |
40+ gh auth login --with-token <<< "${{ inputs.GH_TOKEN }}"
41+ gh release download --pattern "sqlean-macos-arm64.zip" --repo "nalgeon/sqlean"
42+ unzip sqlean-macos-arm64.zip
3843 for TARGET in $(find build -name "DB Browser for SQL*.app" | sed -e 's/ /_/g'); do
3944 TARGET=$(echo $TARGET | sed -e 's/_/ /g')
4045 mkdir "$TARGET/Contents/Extensions"
41- clang -I /opt/homebrew/opt/db4subsqlitefts@5/include -L /opt/homebrew/opt/db4subsqlitefts@5/lib -fno-common -dynamiclib src/extensions/extension-formats.c -o "$TARGET/Contents/Extensions/formats.dylib"
42- clang -I /opt/homebrew/opt/db4subsqlitefts@5/include -L /opt/homebrew/opt/db4subsqlitefts@5/lib -fno-common -dynamiclib src/extensions/extension-functions.c -o "$TARGET/Contents/Extensions/math.dylib"
4346
47+ clang -I /opt/homebrew/opt/db4subsqlitefts@5/include -L /opt/homebrew/opt/db4subsqlitefts@5/lib -fno-common -dynamiclib src/extensions/extension-formats.c -o "$TARGET/Contents/Extensions/formats.dylib"
4448 if [ -f "$TARGET/Contents/Extensions/formats.dylib" ]; then
4549 install_name_tool -id "@executable_path/../Extensions/formats.dylib" "$TARGET/Contents/Extensions/formats.dylib"
4650 ln -s formats.dylib "$TARGET/Contents/Extensions/formats.dylib.dylib"
4751 fi
48- if [ -f "$TARGET/Contents/Extensions/math.dylib" ]; then
49- install_name_tool -id "@executable_path/../Extensions/math.dylib" "$TARGET/Contents/Extensions/math.dylib"
50- ln -s math.dylib "$TARGET/Contents/Extensions/math.dylib.dylib"
51- fi
52-
53- curl -L -o src/extensions/fileio.c 'https://sqlite.org/src/raw?filename=ext/misc/fileio.c&ci=trunk'
54- curl -L -o src/extensions/test_windirect.c 'https://sqlite.org/src/raw?filename=src/test_windirent.c&ci=trunk'
55- curl -L -o src/extensions/test_windirect.h 'https://sqlite.org/src/raw?filename=src/test_windirent.h&ci=trunk'
56- clang -I /opt/homebrew/opt/db4subsqlitefts@5/include -L /opt/homebrew/opt/db4subsqlitefts@5/lib -fno-common -dynamiclib src/extensions/fileio.c src/extensions/test_windirect.c -o "$TARGET/Contents/Extensions/fileio.dylib"
5752
58- if [ -f "$TARGET/Contents/Extensions/fileio.dylib" ]; then
59- install_name_tool -id "@executable_path/../Extensions/fileio.dylib" "$TARGET/Contents/Extensions/fileio.dylib"
60- ln -s fileio.dylib "$TARGET/Contents/Extensions/fileio.dylib.dylib"
53+ cp sqlean.dylib "$TARGET/Contents/Extensions/"
54+ if [ -f "$TARGET/Contents/Extensions/sqlean.dylib" ]; then
55+ install_name_tool -id "@executable_path/../Extensions/sqlean.dylib" "$TARGET/Contents/Extensions/sqlean.dylib"
56+ ln -s sqlean.dylib "$TARGET/Contents/Extensions/sqlean.dylib.dylib"
6157 fi
6258 done
6359
6763 for TARGET in $(find build -name "DB Browser for SQL*.app" | sed -e 's/ /_/g'); do
6864 TARGET=$(echo $TARGET | sed -e 's/_/ /g')
6965 cp LICENSE "$TARGET/Contents/Resources/"
66+ cp LICENSE-EXTENSIONS "$TARGET/Contents/Resources/"
7067 cp LICENSE-PLUGINS "$TARGET/Contents/Resources/"
7168 done
7269
@@ -104,9 +101,8 @@ runs:
104101 run : |
105102 for TARGET in $(find build -name "DB Browser for SQL*.app" | sed -e 's/ /_/g'); do
106103 TARGET=$(echo $TARGET | sed -e 's/_/ /g')
107- codesign --sign "${{ inputs.DEV_ID }}" --deep --force --options=runtime --strict --timestamp "$TARGET/Contents/Extensions/fileio.dylib"
108104 codesign --sign "${{ inputs.DEV_ID }}" --deep --force --options=runtime --strict --timestamp "$TARGET/Contents/Extensions/formats.dylib"
109- codesign --sign "${{ inputs.DEV_ID }}" --deep --force --options=runtime --strict --timestamp "$TARGET/Contents/Extensions/math .dylib"
105+ codesign --sign "${{ inputs.DEV_ID }}" --deep --force --options=runtime --strict --timestamp "$TARGET/Contents/Extensions/sqlean .dylib"
110106 codesign --sign "${{ inputs.DEV_ID }}" --deep --force --options=runtime --strict --timestamp "$TARGET"
111107 done
112108
0 commit comments