File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,11 @@ class DartLibLoader implements LibLoader {
29
29
/// and the binary's relative path
30
30
@override
31
31
String getPath () {
32
- String rootPath;
33
- if (Platform .script.path.endsWith ('.snapshot' )) {
34
- rootPath = File .fromUri (Platform .script).parent.path;
35
- } else {
36
- final rootLibrary = 'package:dargon2/dargon2.dart' ;
37
- // ignore: deprecated_member_use
38
- rootPath = waitFor (Isolate .resolvePackageUri (Uri .parse (rootLibrary)))!
32
+ final rootLibrary = 'package:dargon2/dargon2.dart' ;
33
+ // ignore: deprecated_member_use
34
+ var rootPath = waitFor (Isolate .resolvePackageUri (Uri .parse (rootLibrary)))!
39
35
.resolve ('src/blobs/' )
40
36
.toFilePath (windows: Platform .isWindows);
41
- }
42
37
if (Platform .isMacOS) return '${rootPath }libargon2-darwin.dylib' ;
43
38
if (Platform .isLinux) return '${rootPath }libargon2-linux.so' ;
44
39
if (Platform .isWindows) return '${rootPath }libargon2-win.dll' ;
You can’t perform that action at this time.
0 commit comments