2020-05-19 12:02:55 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2021-10-08 09:38:10 +02:00
|
|
|
RSASS_PATH=$(command -v rsass)
|
|
|
|
if [[ "${RSASS_PATH}" == "" ]]; then
|
2021-01-15 22:57:26 +01:00
|
|
|
cargo install rsass --features=commandline
|
|
|
|
fi
|
|
|
|
|
2021-10-08 16:31:34 +02:00
|
|
|
WASM_PACK_PATH=$(command -v wasm-pack)
|
|
|
|
if [[ "${WASM_PACK_PATH}" == "" ]]; then
|
|
|
|
cargo install wasm-pack
|
|
|
|
fi
|
|
|
|
|
2021-01-07 09:13:13 +01:00
|
|
|
export PROJECT_ROOT=$(git rev-parse --show-toplevel)
|
2021-10-05 14:34:20 +02:00
|
|
|
export CLIENT_ROOT=${PROJECT_ROOT}/web
|
2023-03-31 23:25:20 +02:00
|
|
|
export HI_ROOT=${PROJECT_ROOT}/highlight/bitque-highlight
|
2021-01-07 09:13:13 +01:00
|
|
|
export MODE=force
|
|
|
|
export BUILD_TYPE=--release
|
2021-10-08 16:31:34 +02:00
|
|
|
export COPY_TO=/tmp/wasm
|
2021-01-07 09:13:13 +01:00
|
|
|
|
2021-10-08 16:31:34 +02:00
|
|
|
mkdir -p ${COPY_TO}
|
2020-05-19 12:02:55 +02:00
|
|
|
|
2021-10-08 16:31:34 +02:00
|
|
|
echo $PROJECT_ROOT
|
|
|
|
echo $CLIENT_ROOT
|
2020-05-19 12:02:55 +02:00
|
|
|
|
2021-10-08 16:31:34 +02:00
|
|
|
cd ${CLIENT_ROOT}
|
2020-11-25 20:14:52 +01:00
|
|
|
|
2021-10-08 16:31:34 +02:00
|
|
|
. .env
|
2020-05-19 12:02:55 +02:00
|
|
|
|
2023-03-31 23:25:20 +02:00
|
|
|
${CLIENT_ROOT}/scripts/run-wasm-pack.sh
|