aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-02-25 22:42:52 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-02-25 22:42:52 +0000
commit84d4e5aa380532c0246e002172589e0cafebfa4e (patch)
tree63a73b8db687b499593fee6849b86c250d9b254f
parentbuild(plugin): fix a typo in the build-all.sh (diff)
downloadsl0ppij-84d4e5aa380532c0246e002172589e0cafebfa4e.tar.gz
sl0ppij-84d4e5aa380532c0246e002172589e0cafebfa4e.tar.xz
sl0ppij-84d4e5aa380532c0246e002172589e0cafebfa4e.zip
infra(crates.io): add a script for publishing zellij
-rw-r--r--Cargo.toml1
-rwxr-xr-xpublish.sh23
2 files changed, 24 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4dbe24ca..ae90d246 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ authors = ["Aram Drevekenin <aram@poor.dev>"]
edition = "2018"
description = "Terminal workspace (WIP)"
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
diff --git a/publish.sh b/publish.sh
new file mode 100755
index 00000000..e84c0c0e
--- /dev/null
+++ b/publish.sh
@@ -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 $@