Add a command to Makefile to cross-compile on osx (release-all)
This commit is contained in:
parent
287b21f63b
commit
60b7d4a531
1 changed files with 15 additions and 1 deletions
16
Makefile
16
Makefile
|
|
@ -16,4 +16,18 @@ build-release:
|
|||
install: build-release
|
||||
$(MAKE) build-release
|
||||
$(MAKE) sign-release
|
||||
install target/release/rqbit "$(HOME)/bin/"
|
||||
install target/release/rqbit "$(HOME)/bin/"
|
||||
|
||||
@PHONY: release-all
|
||||
release-all:
|
||||
cargo build --target aarch64-apple-darwin --release
|
||||
cargo build --target x86_64-apple-darwin --release
|
||||
# brew install mingw-w64 for this to work
|
||||
cargo build --target x86_64-pc-windows-gnu --release
|
||||
|
||||
rm -rf /tmp/rqbit-release
|
||||
mkdir -p /tmp/rqbit-release
|
||||
lipo ./target/aarch64-apple-darwin/release/rqbit ./target/x86_64-apple-darwin/release/rqbit -create -output /tmp/rqbit-release/rqbit-osx-universal
|
||||
cp ./target/x86_64-pc-windows-gnu/release/rqbit.exe /tmp/rqbit-release
|
||||
|
||||
echo "The release was built in /tmp/rqbit-release"
|
||||
Loading…
Add table
Add a link
Reference in a new issue