Skip to content

Commit

Permalink
Adding Qt6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
sandman7920 authored and justinclift committed Aug 26, 2024
1 parent 65c471b commit 0d66954
Show file tree
Hide file tree
Showing 406 changed files with 73,738 additions and 6,029 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ jobs:
run: |
if [ "${{ inputs.NIGHTLY }}" = "true" ]; then
if [ "${{ matrix.sqlcipher }}" = "1" ]; then
sed -i "" 's/"DB Browser for SQLite"/"DB Browser for SQLCipher Nightly"/' CMakeLists.txt
sed -i "" 's/"DB Browser for SQLite"/"DB Browser for SQLCipher Nightly"/' config/platform_apple.cmake
else
sed -i "" 's/"DB Browser for SQLite"/"DB Browser for SQLite Nightly"/' CMakeLists.txt
sed -i "" 's/"DB Browser for SQLite"/"DB Browser for SQLite Nightly"/' config/platform_apple.cmake
fi
else
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
sed -i "" 's/"DB Browser for SQLite"/"DB Browser for SQLCipher-dev-'$(git rev-parse --short --verify HEAD)'"/' config/platform_apple.cmake
else
sed -i "" 's/"DB Browser for SQLite"/"DB Browser for SQLite-dev-'$(git rev-parse --short --verify HEAD)'"/' CMakeLists.txt
sed -i "" 's/"DB Browser for SQLite"/"DB Browser for SQLite-dev-'$(git rev-parse --short --verify HEAD)'"/' config/platform_apple.cmake
fi
fi
mkdir build && cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DcustomTap=1 -DENABLE_TESTING=ON -Dsqlcipher=${{ matrix.sqlcipher }} ..
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DcustomTap=1 -DENABLE_TESTING=ON -Dsqlcipher=${{ matrix.sqlcipher }} ..
- name: Build
working-directory: ./build
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
choco install openssl --version=${{ env.OPENSSL_VERSION}}
}
- name: Install Ninja (Windows)
run: choco install -y --no-progress ninja

# When building SQLCipher, if we specify a path to OpenSSL and
# there are spaces in the path, an error will occur, so to
# avoid this, create the symlink.
Expand Down Expand Up @@ -107,9 +110,8 @@ jobs:
mkdir sqlcipher
copy sqlite3.h sqlcipher
- name: Patch CMakeLists.txt and WiX Toolset Variables
- name: Patch WiX Toolset Variables
run: |
git apply .github\patch\CMakeLists.txt.patch
git apply .github\patch\product.wxs.patch
git apply .github\patch\translations.wxs.patch
git apply .github\patch\variables.wxi.patch
Expand All @@ -118,28 +120,29 @@ jobs:
run: |
mkdir release-sqlite && cd release-sqlite
if ("${{ matrix.arch }}" -eq "Win32") {
cmake -G "Visual Studio 16 2019" -A "Win32" -DCMAKE_BUILD_TYPE=Release ..\
cmake -G"Ninja Multi-Config" -DCMAKE_PREFIX_PATH="C:/dev/SQLite-Win32;C:/dev/OpenSSL-Win32" ..\
} else {
cmake -G "Visual Studio 16 2019" ..\
cmake -G"Ninja Multi-Config" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="C:/dev/SQLite-Win64;C:/dev/OpenSSL-Win64" ..\
}
- name: Build (SQLite)
run: cd release-sqlite && devenv /Build Release sqlitebrowser.sln /Project ALL_BUILD
run: |
cd release-sqlite
cmake --build . --config Release
- name: Configure build (SQLCipher)
run: |
mkdir release-sqlcipher && cd release-sqlcipher
if ("${{ matrix.arch }}" -eq "Win32") {
cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -Dsqlcipher=1 -A "Win32" ..\
cmake -G"Ninja Multi-Config" -Dsqlcipher=1 -DCMAKE_PREFIX_PATH="C:/dev/SQLCipher-Win32;C:/dev/OpenSSL-Win32" ..\
} else {
cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -Dsqlcipher=1 ..\
cmake -G"Ninja Multi-Config" -Dsqlcipher=1 -DCMAKE_PREFIX_PATH="C:/dev/SQLCipher-Win64;C:/dev/OpenSSL-Win64" ..\
}
- name: Build (SQLCipher)
run: |
cd release-sqlcipher
devenv /Build Release sqlitebrowser.sln /Project ALL_BUILD
mv "Release\DB Browser for SQLite.exe" "Release\DB Browser for SQLCipher.exe"
cmake --build . --config Release
- if: github.event_name != 'pull_request'
name: Create MSI
Expand Down
Loading

0 comments on commit 0d66954

Please sign in to comment.