Skip to content

Commit

Permalink
Fix cross compile Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewLM committed Jan 15, 2024
1 parent 3752552 commit a813cfb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions coinlib/bin/build_windows_crosscompile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM debian:bullseye
# Install dependenices.
RUN apt-get update -y \
&& apt-get install -y autoconf libtool build-essential git cmake
&& apt-get install -y autoconf libtool build-essential git cmake gcc-mingw-w64
# Clone libsecp256k1 0.3.1 release.
RUN git clone https://github.com/bitcoin-core/secp256k1 \
Expand All @@ -24,7 +24,8 @@ RUN make
# Build DLL and copy into output.
RUN make install
RUN cp src/libsecp256k1-2.dll output/libsecp256k1.dll
RUN mkdir output
RUN cp src/libsecp256k1.dll output/libsecp256k1.dll
""";

void main() async {
Expand All @@ -37,7 +38,7 @@ void main() async {
cmd,
dockerfile,
"coinlib_build_secp256k1_windows",
"/secp256k1/output/libsecp256k1.dll",
"output/libsecp256k1.dll",
)) {
exit(1);
}
Expand Down

0 comments on commit a813cfb

Please sign in to comment.