From 008be4bc9732d62a1113837a0f047267b5a3a09a Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Tue, 25 Aug 2020 17:59:13 +0200 Subject: [PATCH] more debugging. --- CHANGELOG.md | 2 +- lib/src/argon2_ffi_impl.dart | 4 +++- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3642abe..c3bf600 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.1.4+4 +## 0.1.4+5 * Linux: Also search lib/ sub directory for libargon so file. diff --git a/lib/src/argon2_ffi_impl.dart b/lib/src/argon2_ffi_impl.dart index 4a8b447..e515c0f 100644 --- a/lib/src/argon2_ffi_impl.dart +++ b/lib/src/argon2_ffi_impl.dart @@ -94,7 +94,9 @@ class Argon2FfiFlutter extends Argon2Base { static ResolveLibrary defaultResolveLibrary = (name) { if (Platform.isLinux) { // on linux the library is put into a `lib` sub directory. - final appDir = File(Platform.executable).parent; + _logger.finest( + 'Resolving path to $name relative to ${Platform.resolvedExecutable}'); + final appDir = File(Platform.resolvedExecutable).parent; final appDirPath = appDir.path; final f = File(path.join(appDirPath, name)); _logger.finest('checking $appDirPath for $name'); diff --git a/pubspec.yaml b/pubspec.yaml index 3842f28..355c2e8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: argon2_ffi_base description: Base package defining the interface for an Argon2 implementation. -version: 0.1.4+4 +version: 0.1.4+5 homepage: https://github.com/authpass/argon2_ffi_base environment: