mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
* Revert "Revert "monero: update dependencies (#3064)" (#3114)"
This reverts commit 2d034091ff.
* bump: moneroc
* fix: macos builds
---------
Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
28 lines
858 B
Dart
28 lines
858 B
Dart
import 'dart:io';
|
|
import 'package:path/path.dart' as p;
|
|
|
|
File getMoneroCBinary() {
|
|
final baseDir = Directory('../scripts/monero_c/release');
|
|
|
|
final versionDir =
|
|
baseDir.listSync().whereType<Directory>().map((d) => d.path).firstWhere(
|
|
(path) => p.basename(path).startsWith('v'),
|
|
);
|
|
|
|
if (Platform.isWindows) {
|
|
return File(p.join(
|
|
versionDir, 'x86_64-w64-mingw32', 'libmonero_wallet2_api_c.dll'));
|
|
}
|
|
if (Platform.isMacOS) {
|
|
return File(p.join(versionDir, 'macos', 'libmonero_wallet2_api_c.dylib'));
|
|
}
|
|
return File(
|
|
p.join(versionDir, 'x86_64-linux-gnu', 'libmonero_wallet2_api_c.so'));
|
|
}
|
|
|
|
String get moneroCBinaryName {
|
|
if (Platform.isWindows) return "libmonero_wallet2_api_c.dll";
|
|
if (Platform.isMacOS) return "libmonero_wallet2_api_c.dylib";
|
|
return "/usr/lib/libmonero_wallet2_api_c.so";
|
|
}
|