mirror of
https://github.com/lldap/lldap.git
synced 2024-11-24 08:45:08 +00:00
17 lines
316 B
Bash
Executable file
17 lines
316 B
Bash
Executable file
#! /bin/sh
|
|
|
|
cd $(dirname $0)
|
|
if ! which wasm-pack > /dev/null 2>&1
|
|
then
|
|
>&2 echo '`wasm-pack` not found. Try running `cargo install wasm-pack`'
|
|
exit 1
|
|
fi
|
|
if ! which gzip > /dev/null 2>&1
|
|
then
|
|
>&2 echo '`gzip` not found.'
|
|
exit 1
|
|
fi
|
|
|
|
wasm-pack build --target web --release
|
|
|
|
gzip -9 -k -f pkg/lldap_app_bg.wasm
|