Skip to content

Commit

Permalink
Get build to work on macOS again
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewLM committed Jul 31, 2023
1 parent 7db8761 commit 3e22f48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion coinlib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ framework named `secp256k1.framework`.

The dylib can be built in the root directory of coinlib by running `dart run
bin/build_macos.dart` which will create the library under
`build/libsecp256k1.dylib`.
`build/libsecp256k1.dylib`. This library can be moved to the `build/` directory
where the dart code is to be run.

## Development

Expand Down
6 changes: 4 additions & 2 deletions coinlib/bin/util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ Future<int> execWithStdio(

final process = await Process.start(
executable, arguments, workingDirectory: workingDir,
mode: (stdin == null)
? ProcessStartMode.inheritStdio
: ProcessStartMode.normal,
);

process.stdout.pipe(stdout);

if (stdin != null) {
process.stdout.pipe(stdout);
process.stdin.write(stdin);
await process.stdin.flush();
await process.stdin.close();
Expand Down

0 comments on commit 3e22f48

Please sign in to comment.