Update platforms.md

This commit is contained in:
Le Stradic Paul 2020-11-26 23:13:18 +01:00 committed by GitHub
parent 1cca22bc56
commit 7891767784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -100,10 +100,10 @@ void main() {
DynamicLibrary _openOnLinux() { DynamicLibrary _openOnLinux() {
final script = File(Platform.script.toFilePath()); final script = File(Platform.script.toFilePath());
final libraryNextToScript = File('${script.path}/sqlite3.so'); final libraryNextToScript = File('${script.parent.path}/sqlite3.so');
return DynamicLibrary.open(libraryNextToScript.path); return DynamicLibrary.open(libraryNextToScript.path);
} }
// _openOnWindows could be implemented similarly by opening `sqlite3.dll` // _openOnWindows could be implemented similarly by opening `sqlite3.dll`
``` ```
Be sure to use moor _after_ you set the platform-specific overrides. Be sure to use moor _after_ you set the platform-specific overrides.