diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0d5a294 --- /dev/null +++ b/Makefile @@ -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 diff --git a/bytesto4t/src-tauri/Cross.toml b/bytesto4t/src-tauri/Cross.toml new file mode 100644 index 0000000..dac9162 --- /dev/null +++ b/bytesto4t/src-tauri/Cross.toml @@ -0,0 +1,5 @@ +[build.env] +passthrough = [ + "RUSTFLAGS", + "RUST_BACKTRACE", +] \ No newline at end of file