fixed to cross-compile from linux

This commit is contained in:
Alex Janka 2022-01-09 18:29:30 +11:00
parent 6b4955e29c
commit 38b04ced37
3 changed files with 13 additions and 7 deletions

View file

@ -1,5 +1,7 @@
cargo build --target-dir=./build/macos --release #!/bin/bash
# set -e
cargo build --target=x86_64-apple-darwin --target-dir=./build/macos --release
mkdir -p build/release/macos mkdir -p build/release/macos
cp build/macos/release/converter build/release/macos/ableton-rack-converter cp build/macos/x86_64-apple-darwin/release/converter build/release/macos/ableton-rack-converter
cp build/macos/release/compressor build/release/macos/xml-to-rack cp build/macos/x86_64-apple-darwin/release/compressor build/release/macos/xml-to-rack
cp build/macos/release/decompressor build/release/macos/rack-to-xml cp build/macos/x86_64-apple-darwin/release/decompressor build/release/macos/rack-to-xml

View file

@ -1,5 +1,7 @@
cargo build --target=x86_64-pc-windows-gnu --target-dir=./build/windows --release #!/bin/bash
# set -e
cargo build --target=x86_64-pc-windows-gnu --target-dir=./build/release/windows --release
mkdir -p build/release/windows mkdir -p build/release/windows
cp build/windows/x86_64-pc-windows-gnu/release/converter.exe build/release/windows/ableton-rack-converter.exe cp build/windows/x86_64-pc-windows-gnu/release/converter.exe build/release/windows/ableton-rack-converter.exe
cp build/windows/x86_64-pc-windows-gnu/release/compressor.exe build/release/windows/xml-to-rack.exe cp build/windows/x86_64-pc-windows-gnu/release/compressor.exe build/release/windows/xml-to-rack.exe
cp build/windows/x86_64-pc-windows-gnu/release/decompressor.exe build/release/windows/rack-to-xml.exe cp build/windows/x86_64-pc-windows-gnu/release/decompressor.exe build/release/windows/rack-to-xml.exe

View file

@ -1,7 +1,9 @@
#!/bin/bash
# set -e
rm -rf build/release rm -rf build/release
mkdir -p build/release mkdir -p build/release
./build-macos.sh ./build-macos.sh
./build-windows.sh ./build-windows.sh
cd build/release cd build/release
zip -j macos-ableton-rack-converter.zip macos/* zip -j macos-ableton-rack-converter.zip macos/*
zip -j windows-ableton-rack-converter.zip windows/* zip -j windows-ableton-rack-converter.zip windows/*.exe