wasm32 build target #10

Merged
djmil merged 9 commits from dev-container into master 2024-08-31 12:23:28 +02:00
2 changed files with 34 additions and 12 deletions
Showing only changes of commit 94b3a561d9 - Show all commits

View File

@ -9,3 +9,5 @@ ENTRYPOINT ["trunk"]
CMD ["serve"]
WORKDIR /egui-circles
EXPOSE 8080/tcp

View File

@ -25,16 +25,36 @@ if ! has_docker_image $BUILDER; then
esac
fi
echo "Initiate WASM32 target build.."
echo "--> Initiate WASM32 target build.."
if has_docker_container $TRAGET; then
docker start \
$TRAGET \
--attach
else
docker run \
--rm \
--volume $(pwd):/$NAME \
--name $TRAGET \
$BUILDER \
build --release --public-url /$NAME --verbose
fi
echo "--> wasm32 target can be found in dist/ folder"
read -p "Would you like to publish (y/n)? "
case "$REPLY" in
y|Y )
cd dist/
git init
git checkout -b main
git add .
git commit --message «v0.2.1»
# solution for "send-pack: unexpected disconnect while reading sideband packet"
git config http.postBuffer 157286400
git remote add origin https://gitea.djmil.dev/demo/egui-circles.git
git push --set-upstream origin main --force
echo "--> Published at https://demo.pages.djmil.dev/egui-circles"
;;
* )
exit 0
;;
esac