2021-02-16 21:33:27 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-03-10 00:51:17 +03:00
|
|
|
total=5
|
2021-02-21 02:19:05 +03:00
|
|
|
|
2021-02-16 21:33:27 +03:00
|
|
|
# This is temporary while https://github.com/rust-lang/cargo/issues/7004 is open
|
|
|
|
|
2021-03-10 00:51:17 +03:00
|
|
|
echo "Building status-bar (1/$total)..."
|
|
|
|
cd default-tiles/status-bar
|
2021-02-28 10:09:09 +03:00
|
|
|
cargo build --release --target-dir ../../target
|
|
|
|
|
2021-03-10 00:51:17 +03:00
|
|
|
echo "Building strider (2/$total)..."
|
2021-02-16 21:33:27 +03:00
|
|
|
cd ../strider
|
2021-02-28 10:09:09 +03:00
|
|
|
cargo build --release --target-dir ../../target
|
|
|
|
|
2021-03-10 00:51:17 +03:00
|
|
|
echo "Building tab-bar (3/$total)..."
|
2021-02-21 02:19:05 +03:00
|
|
|
cd ../tab-bar
|
2021-02-28 10:09:09 +03:00
|
|
|
cargo build --release --target-dir ../../target
|
|
|
|
|
2021-03-10 00:51:17 +03:00
|
|
|
echo "Optimising WASM executables (4/$total)..."
|
2021-02-16 21:33:27 +03:00
|
|
|
cd ../..
|
2021-02-23 19:47:22 +03:00
|
|
|
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-26 01:29:06 +03:00
|
|
|
wasm-opt -O target/wasm32-wasi/release/tab-bar.wasm -o target/tab-bar.wasm || cp target/wasm32-wasi/release/tab-bar.wasm target/tab-bar.wasm
|
2021-03-10 00:51:17 +03:00
|
|
|
echo "Building zellij (5/$total)..."
|
2021-02-28 10:09:09 +03:00
|
|
|
cargo build --target-dir target $@
|