grid-apps-cmms/bin/build-upload
Stewart Allen e26e57e193 complete es module wrappers
update manifold to current npm
update csg to use new manifold
remove manifold npm pre install download from static
2024-06-29 07:14:20 -04:00

14 lines
388 B
Shell
Executable file

#!/bin/bash
target=$1
tag=${2:-latest}
echo "build and release target=$target tag=$tag"
[ -z "$target" ] && echo "missing target" && exit
[ -z "$tag" ] && echo "missing tag" && exit
rm -rf dist && npm run build-${target} && for i in dist/*{exe,dmg,AppImage}; do
if [ -f "$i" ]; then
bn=$(basename $i)
gh release delete-asset ${tag} ${bn} -y
gh release upload ${tag} ${i}
fi
done