cleanup and reogranization

This commit is contained in:
Simon Gardling
2022-03-01 09:26:51 -05:00
parent 8ae620633f
commit 2a5fb8ca69
2 changed files with 26 additions and 25 deletions

View File

@@ -7,7 +7,8 @@ llvm-strip --strip-all pkg/integral_site_bg.wasm
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 -r pkg/integral_site_bg.wasm pkg/integral_site.js tmp/
cp www/index.html www/style.css tmp/
sed -i 's/\.\.\/pkg/\.\/pkg/g' tmp/index.html
echo "Total size: $(du -sb tmp)"
echo "Binary size: $(du -sb tmp/integral_site_bg.wasm)"