Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Add cross-platform (Windows, Linux and Mac)
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o committed Jul 19, 2024
1 parent 8368894 commit 19da423
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
24 changes: 18 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
FROM rust:1.79.0 as builder

WORKDIR /app
RUN apt-get update && apt-get install -y \ git \
RUN git clone https://github.com/Bitswap-BiFi-Bitswap-demo.git /path/to/clone

RUN apt-get update && apt-get install -y git mingw-w64

RUN rustup target add x86_64-pc-windows-gnu

RUN git clone https://github.com/Bitswap-BiFi-Bitswap-demo.git /app/Bitswap-BiFi-Bitswap-demo

WORKDIR /app/Bitswap-BiFi-Bitswap-demo
RUN cd Bitswap-BiFi-Bitswap-demo && cargo build
RUN --releasCOPY --from=builder /Bitswap-BiFi-Bitswap-demo/target/release/main.
RUN --releaseCMD ["./main"]
CMD ["main.rs", "command.rs"]

RUN cargo build --release --target x86_64-pc-windows-gnu

FROM debian:buster-slim

WORKDIR /app

COPY --from=builder /app/Bitswap-BiFi-Bitswap-demo/target/x86_64-pc-windows-gnu/release/main.exe .

CMD ["./main.exe", "main.rs", "command.rs"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Check [here](https://github.com/BitSwap-BiFi/Bitswap-FAQ/)

- [ ] Release crates
- [ ] Full CLI
- [x] Cross-platform
- [x] Full GUI by rust
- [ ] Liquid support to CLI
- [x] Testnet4
Expand Down

0 comments on commit 19da423

Please sign in to comment.