35 lines
1.1 KiB
Bash
Executable File
35 lines
1.1 KiB
Bash
Executable File
# Set everything up
|
|
rm -rf output
|
|
mkdir -p output
|
|
cargo clean
|
|
|
|
# Build for linux
|
|
cargo build --release
|
|
cp target/release/lemur output/lemur-linux
|
|
|
|
# Bundle for Linux
|
|
cargo bundle --release --format deb
|
|
cp target/release/bundle/deb/*.deb output
|
|
|
|
# Build for Windows
|
|
cargo build --release --target x86_64-pc-windows-msvc
|
|
cp target/x86_64-pc-windows-msvc/release/lemur.exe output
|
|
|
|
# Build for MacOS Intel
|
|
cargo build --release --target x86_64-apple-darwin
|
|
cp target/x86_64-apple-darwin/release/lemur output/lemur-osx-intel
|
|
|
|
# Bundle for MacOS Intel
|
|
cargo bundle --release --target x86_64-apple-darwin --format osx
|
|
genisoimage -V lemur -D -R -apple -no-pad -o output/Lemur-Intel.dmg target/x86_64-apple-darwin/release/bundle/osx
|
|
|
|
# Build for MacOS Apple Silicon
|
|
cargo build --release --target aarch64-apple-darwin
|
|
cp target/aarch64-apple-darwin/release/lemur output/lemur-osx-apple-silicon
|
|
|
|
# Bundle for MacOS Apple Silicon
|
|
cargo bundle --release --target aarch64-apple-darwin --format osx
|
|
genisoimage -V lemur -D -R -apple -no-pad -o output/Lemur-Apple-Silicon.dmg target/aarch64-apple-darwin/release/bundle/osx
|
|
|
|
# Clean up after ourselves
|
|
cargo clean |