build system fixes

This commit is contained in:
Simon Gardling
2022-03-01 10:05:19 -05:00
parent 060d667cae
commit 47429958d4
2 changed files with 13 additions and 16 deletions

View File

@@ -1,17 +1,6 @@
#!/bin/bash
set -e
if test "$1" == "" || test "$1" == "release"; then
bash build.sh
elif test "$1" == "debug"; then
wasm-pack build --target web --debug --no-typescript
rm -fr tmp | true #delete tmp folder if exists
mkdir tmp tmp/pkg
cp -r pkg/integral_site_bg.wasm pkg/integral_site.js tmp/pkg/
cp www/index.html www/style.css tmp/
sed -i 's/\.\.\/pkg/\.\/pkg/g' tmp/index.html
fi
bash build.sh "$1"
basic-http-server tmp/