2
0
mirror of https://gitlab.com/famedly/fluffychat.git synced 2025-05-03 00:07:24 +02:00

Merge branch 'MTRNord/fix-sqlite-windows-dll' into 'main'

fix(windows): Make sure we look at the correct path when searching the sqlite3 dll

See merge request 
This commit is contained in:
Christian Pauly 2020-12-11 10:37:13 +00:00
commit 20e8c945a3

@ -77,8 +77,9 @@ Future<Database> constructDb(
} }
DynamicLibrary _openOnWindows() { DynamicLibrary _openOnWindows() {
final script = File(Platform.script.toFilePath()); final exePath =
final libraryNextToScript = File('${script.path}/sqlite3.dll'); File(Platform.resolvedExecutable.replaceAll('fluffychat.exe', ''));
final libraryNextToScript = File('${exePath.path}/sqlite3.dll');
return DynamicLibrary.open(libraryNextToScript.path); return DynamicLibrary.open(libraryNextToScript.path);
} }