Skip to content

Commit

Permalink
build: Set the minimum required version of macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
lucydodo committed Oct 1, 2023
1 parent cb33e94 commit a4be5f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/actions/notarize-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ runs:
env:
DEV_ID: ${{ inputs.DEV_ID }}
shell: bash
run: find build -name "DB Browser for SQL*.app" -exec /opt/homebrew/opt/db4subqt@5/bin/macdeployqt {} -sign-for-notarization="$DEV_ID" \;
run: |
export MACOSX_DEPLOYMENT_TARGET=10.12
find build -name "DB Browser for SQL*.app" -exec /opt/homebrew/opt/db4subqt@5/bin/macdeployqt {} -sign-for-notarization="$DEV_ID" \;
- name: Add the extension to the app bundle
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.12
for TARGET in $(find build -name "DB Browser for SQL*.app" | sed -e 's/ /_/g'); do
TARGET=$(echo $TARGET | sed -e 's/_/ /g')
mkdir "$TARGET/Contents/Extensions"
Expand Down Expand Up @@ -177,4 +180,4 @@ runs:

- name: Staple the notarization ticket
shell: bash
run: xcrun stapler staple *.dmg
run: xcrun stapler staple *.dmg
4 changes: 3 additions & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- if: env.DAILY == 'false'
name: Configure build (Continuous)
run: |
export MACOSX_DEPLOYMENT_TARGET=10.12
if [ "${{ matrix.sqlcipher }}" = "1" ]; then
sed -i "" 's/"DB Browser for SQLite"/"DB Browser for SQLCipher-dev-'$(git rev-parse --short --verify HEAD)'"/' CMakeLists.txt
else
Expand All @@ -48,6 +49,7 @@ jobs:
- if: env.DAILY == 'true'
name: Configure build (Daily)
run: |
export MACOSX_DEPLOYMENT_TARGET=10.12
if [ "${{ matrix.sqlcipher }}" = "1" ]; then
sed -i "" 's/"DB Browser for SQLite"/"DB Browser for SQLCipher Nightly"/' CMakeLists.txt
else
Expand Down Expand Up @@ -101,4 +103,4 @@ jobs:
else
ssh -q ${{ secrets.MACOS_BUILD_ARTIFACTS_UPLOAD_TARGET }} "cd /nightlies/latest && rm -f *SQLi*-universal*dmg*"
ssh -q ${{ secrets.MACOS_BUILD_ARTIFACTS_UPLOAD_TARGET }} "ln -s /nightlies/macos-universal/DB.Browser.for.SQLite-universal_$DATE.dmg /nightlies/latest/DB.Browser.for.SQLite-universal.dmg"
fi
fi
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ if(WIN32 AND MSVC)
endif()

if(APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12)
set_target_properties(${PROJECT_NAME} PROPERTIES
BUNDLE True
OUTPUT_NAME "DB Browser for SQLite"
Expand Down

0 comments on commit a4be5f1

Please sign in to comment.