lemur/scripts/do-bundle.sh

35 lines
1.1 KiB
Bash
Raw Normal View History

2024-12-16 05:38:16 +00:00
# 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
2024-12-17 04:24:17 +00:00
# Build for MacOS Intel
2024-12-16 05:38:16 +00:00
cargo build --release --target x86_64-apple-darwin
2024-12-17 04:24:17 +00:00
cp target/x86_64-apple-darwin/release/lemur output/lemur-osx-intel
2024-12-16 05:38:16 +00:00
2024-12-17 04:24:17 +00:00
# Bundle for MacOS Intel
2024-12-16 05:38:16 +00:00
cargo bundle --release --target x86_64-apple-darwin --format osx
2024-12-17 04:24:17 +00:00
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
2024-12-16 05:38:16 +00:00
# Clean up after ourselves
cargo clean