mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-19 20:04:15 -04:00
start of integration test
This commit is contained in:
parent
7e9254faac
commit
87735dfb8e
147 changed files with 5787 additions and 15 deletions
25
packages/veilid_support/example/dev-setup/wasm_update.sh
Executable file
25
packages/veilid_support/example/dev-setup/wasm_update.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
source $SCRIPTDIR/_script_common
|
||||
|
||||
pushd $SCRIPTDIR >/dev/null
|
||||
|
||||
# WASM output dir
|
||||
WASMDIR=$APPDIR/web/wasm
|
||||
|
||||
# Build veilid-wasm, passing any arguments here to the build script
|
||||
pushd $VEILIDDIR/veilid-wasm >/dev/null
|
||||
PKGDIR=$(./wasm_build.sh $@ | grep SUCCESS:OUTPUTDIR | cut -d= -f2)
|
||||
popd >/dev/null
|
||||
|
||||
# Copy wasm blob into place
|
||||
echo Updating WASM from $PKGDIR to $WASMDIR
|
||||
if [ -d $WASMDIR ]; then
|
||||
rm -f $WASMDIR/*
|
||||
fi
|
||||
mkdir -p $WASMDIR
|
||||
cp -f $PKGDIR/* $WASMDIR/
|
||||
|
||||
#### Done
|
||||
|
||||
popd >/dev/null
|
Loading…
Add table
Add a link
Reference in a new issue