Merge pull request #1904 from TheOneWithTheBraid/braid/macos-dylib
fix: SQLCipher dylib location on macOS builds
This commit is contained in:
commit
a979c2e4fb
|
|
@ -60,10 +60,6 @@ jobs:
|
||||||
architecture: "arm64"
|
architecture: "arm64"
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
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
|
|
||||||
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
|
sudo apt-get update && sudo apt-get install --no-install-recommends --no-install-suggests -y lcov libsqlite3-0 libsqlite3-dev libolm3 libssl3
|
||||||
./scripts/test.sh
|
./scripts/test.sh
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,9 @@ class SQfLiteEncryptionHelper {
|
||||||
}
|
}
|
||||||
if (Platform.isMacOS) {
|
if (Platform.isMacOS) {
|
||||||
return DynamicLibrary.open(
|
return DynamicLibrary.open(
|
||||||
'/usr/lib/libsqlcipher_flutter_libs_plugin.dylib');
|
'sqlcipher_flutter_libs.framework/Versions/Current/'
|
||||||
|
'sqlcipher_flutter_libs',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (Platform.isWindows) {
|
if (Platform.isWindows) {
|
||||||
return DynamicLibrary.open('libsqlcipher.dll');
|
return DynamicLibrary.open('libsqlcipher.dll');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue