mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
fix(windows): Make sure we look at the correct path when searching the sqlite3 dll
Took 23 minutes
This commit is contained in:
parent
16dd5164ba
commit
986c03e45f
@ -77,8 +77,9 @@ Future<Database> constructDb(
|
|||||||
}
|
}
|
||||||
|
|
||||||
DynamicLibrary _openOnWindows() {
|
DynamicLibrary _openOnWindows() {
|
||||||
final script = File(Platform.script.toFilePath());
|
final exe_path = File(
|
||||||
final libraryNextToScript = File('${script.path}/sqlite3.dll');
|
Platform.resolvedExecutable.replaceAll(RegExp(r'fluffychat.exe'), ''));
|
||||||
|
final libraryNextToScript = File('${exe_path.path}/sqlite3.dll');
|
||||||
return DynamicLibrary.open(libraryNextToScript.path);
|
return DynamicLibrary.open(libraryNextToScript.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user