From 866155a2300d2ef324e5ed2afea38b5e3a7f0156 Mon Sep 17 00:00:00 2001 From: Elijah Voigt Date: Tue, 8 Jul 2025 23:14:10 -0700 Subject: [PATCH] Add git sha to itch version --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ec537e5..5a6cd06 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,9 @@ -web/trees: +VERSION=$(shell git rev-parse --short HEAD) + +release/trees/web: + cargo build --bin trees --release --target wasm32-unknown-unknown + +web/trees: release/trees/web mkdir -p dist/trees wasm-bindgen --no-typescript --target web \ @@ -23,5 +28,5 @@ web/trees: web/trees/serve: web/trees cd dist/trees && simple-http-server -itch.io/trees: - butler push dist/trees popgame/trees:html5 +itch.io/trees: web/trees + butler push dist/trees popgame/trees:html5 --userversion=$(VERSION)