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 ChristianPauly/fluffychat-flutter!235
This commit is contained in:
commit
b7eafd242f
1 changed files with 3 additions and 2 deletions
|
|
@ -77,8 +77,9 @@ Future<Database> constructDb(
|
|||
}
|
||||
|
||||
DynamicLibrary _openOnWindows() {
|
||||
final script = File(Platform.script.toFilePath());
|
||||
final libraryNextToScript = File('${script.path}/sqlite3.dll');
|
||||
final exePath =
|
||||
File(Platform.resolvedExecutable.replaceAll('fluffychat.exe', ''));
|
||||
final libraryNextToScript = File('${exePath.path}/sqlite3.dll');
|
||||
return DynamicLibrary.open(libraryNextToScript.path);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue