funcitoning build system

This commit is contained in:
Alex Janka 2021-09-24 13:23:25 +10:00
parent a8f4c01820
commit 82d46d8ede
4 changed files with 17 additions and 1 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
/target
/test_files
/exported_files
/exported_files
/build

4
build-macos.sh Executable file
View file

@ -0,0 +1,4 @@
cargo build --target-dir=./build/macos --release
mkdir -p build/release/macos
cp build/macos/release/converter build/release/macos/ableton-rack-converter
cp build/macos/release/compressor build/release/macos/xml-to-compressed-rack

4
build-windows.sh Executable file
View file

@ -0,0 +1,4 @@
cargo build --target=x86_64-pc-windows-gnu --target-dir=./build/windows --release
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/compressor.exe build/release/windows/xml-to-compressed-rack.exe

7
build.sh Executable file
View file

@ -0,0 +1,7 @@
rm -rf build/release
mkdir -p build/release
./build-macos.sh
./build-windows.sh
cd build/release
zip -j macos-ableton-rack-converter.zip macos/*
zip -j windows-ableton-rack-converter.zip windows/*