Skip to content

Commit

Permalink
fix: SQLCipher dylib location on macOS builds
Browse files Browse the repository at this point in the history
Signed-off-by: The one with the braid <[email protected]>
  • Loading branch information
TheOneWithTheBraid authored and nico-famedly committed Aug 21, 2024
1 parent 99564df commit 1887328
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
run: |
# Prevent restarting the github actions service on package upgrades
# See https://discourse.ubuntu.com/t/needrestart-changes-in-ubuntu-24-04-service-restarts/44671
mkdir -p /etc/needrestart/conf.d/
echo '$nrconf{override_rc}{qr(^actions.runner.*.service$)} = 0;' | sudo tee /etc/needrestart/conf.d/githubactions.conf
sudo apt-get update && sudo apt-get install --no-install-recommends --no-install-suggests -y lcov libsqlite3-0 libsqlite3-dev libolm3 libssl3
Expand Down
4 changes: 3 additions & 1 deletion lib/src/database/sqflite_encryption_helper/io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ class SQfLiteEncryptionHelper {
}
if (Platform.isMacOS) {
return DynamicLibrary.open(
'/usr/lib/libsqlcipher_flutter_libs_plugin.dylib');
'sqlcipher_flutter_libs.framework/Versions/Current/'
'sqlcipher_flutter_libs',
);
}
if (Platform.isWindows) {
return DynamicLibrary.open('libsqlcipher.dll');
Expand Down

0 comments on commit 1887328

Please sign in to comment.