From a4be5f1e2356ec3ee60283f8c35ea96ff2ce3f26 Mon Sep 17 00:00:00 2001 From: SeongTae Jeong Date: Sun, 1 Oct 2023 15:33:30 +0900 Subject: [PATCH] build: Set the minimum required version of macOS --- .github/actions/notarize-macos/action.yml | 7 +++++-- .github/workflows/build-macos.yml | 4 +++- CMakeLists.txt | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/actions/notarize-macos/action.yml b/.github/actions/notarize-macos/action.yml index 6aa20eab9..54cf77d46 100644 --- a/.github/actions/notarize-macos/action.yml +++ b/.github/actions/notarize-macos/action.yml @@ -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" @@ -177,4 +180,4 @@ runs: - name: Staple the notarization ticket shell: bash - run: xcrun stapler staple *.dmg \ No newline at end of file + run: xcrun stapler staple *.dmg diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index b1d5d5974..99477eea0 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -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 @@ -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 @@ -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 \ No newline at end of file + fi diff --git a/CMakeLists.txt b/CMakeLists.txt index 3bad39840..8972e83e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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"