zellij/build-all.sh

26 lines
976 B
Bash
Raw Normal View History

#!/bin/sh
2021-02-21 02:19:05 +03:00
total=6
# This is temporary while https://github.com/rust-lang/cargo/issues/7004 is open
2021-02-21 02:19:05 +03:00
echo "Building zellij-tile (1/$total)..."
cd zellij-tile
cargo build --release
2021-02-21 02:19:05 +03:00
echo "Building status-bar (2/$total)..."
cd ../default-tiles/status-bar
cargo build --release
2021-02-21 02:19:05 +03:00
echo "Building strider (3/$total)..."
cd ../strider
cargo build --release
2021-02-21 02:19:05 +03:00
echo "Building tab-bar (4/$total)..."
cd ../tab-bar
cargo build --release
echo "Optimising WASM executables (5/$total)..."
cd ../..
wasm-opt -O target/wasm32-wasi/release/status-bar.wasm -o target/status-bar.wasm || cp target/wasm32-wasi/release/status-bar.wasm target/status-bar.wasm
wasm-opt -O target/wasm32-wasi/release/strider.wasm -o target/strider.wasm || cp target/wasm32-wasi/release/strider.wasm target/strider.wasm
2021-02-21 02:19:05 +03:00
wasm-opt -O target/wasm32-wasi/release/tab-bar.wasm -o assets/plugins/tab-bar.wasm || cp target/wasm32-wasi/release/tab-bar.wasm target/tab-bar.wasm
echo "Building zellij (6/$total)..."
cargo build $@