Skip to content

Commit

Permalink
Merge pull request #1 from FirowMD/feat-cross-build
Browse files Browse the repository at this point in the history
✨ feat: cross build
  • Loading branch information
FirowMD authored Oct 28, 2024
2 parents 4ec51a1 + ee850f2 commit 87fcc87
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
release:
cd bytesto4t/src-tauri
echo "Releasing x86_64-pc-windows-gnu"
make release-x86_64-pc-windows-gnu
echo "Releasing x86_64-unknown-linux-gnu"
make release-x86_64-unknown-linux-gnu

release-x86_64-pc-windows-gnu:
cross build --release --target x86_64-pc-windows-gnu

release-x86_64-unknown-linux-gnu:
cross build --release --target x86_64-unknown-linux-gnu

install-deps:
echo "Installing dependencies..."
cargo install cross
5 changes: 5 additions & 0 deletions bytesto4t/src-tauri/Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build.env]
passthrough = [
"RUSTFLAGS",
"RUST_BACKTRACE",
]

0 comments on commit 87fcc87

Please sign in to comment.