infra(crates.io): add a script for publishing zellij
This commit is contained in:
parent
560ccdc487
commit
84d4e5aa38
2 changed files with 24 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ authors = ["Aram Drevekenin <aram@poor.dev>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "Terminal workspace (WIP)"
|
description = "Terminal workspace (WIP)"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
repository = "https://github.com/zellij-org/zellij"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|
|
||||||
23
publish.sh
Executable file
23
publish.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
total=6
|
||||||
|
|
||||||
|
echo "Building zellij-tile (1/$total)..."
|
||||||
|
cd zellij-tile
|
||||||
|
cargo build --release
|
||||||
|
echo "Building status-bar (2/$total)..."
|
||||||
|
cd ../default-tiles/status-bar
|
||||||
|
cargo build --release
|
||||||
|
echo "Building strider (3/$total)..."
|
||||||
|
cd ../strider
|
||||||
|
cargo build --release
|
||||||
|
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 assets/plugins/status-bar.wasm
|
||||||
|
wasm-opt -O target/wasm32-wasi/release/strider.wasm -o assets/plugins/strider.wasm
|
||||||
|
wasm-opt -O target/wasm32-wasi/release/tab-bar.wasm -o assets/plugins/tab-bar.wasm
|
||||||
|
echo "Publishing zellij (6/$total)..."
|
||||||
|
cargo publish $@
|
||||||
Loading…
Add table
Reference in a new issue