From 1524cb88f6eb6b52bd1d03cd2f7b241b3423d08b Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Tue, 30 Apr 2024 16:40:00 +0100 Subject: [PATCH] Fix version code again --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index a28026e..8051c15 100644 --- a/src/Makefile +++ b/src/Makefile @@ -147,7 +147,7 @@ $(BUILD)/micropython.js: $(OBJ) jshal.js simulator-js simulator-js: npx esbuild '--define:process.env.STAGE="$(STAGE)"' ./simulator.ts --bundle --outfile=$(BUILD)/simulator.js --loader:.svg=text - npx esbuild '--define:process.env.VERSION="$((cat ./package.json | grep '"version":' | sed 's/"version": //' | sed 's/,//'))"' ./sw.ts --bundle --outfile=./sw.js + npx esbuild --define:process.env.VERSION="$$(cat ../package.json | grep '"version":' | sed 's/"version": //' | sed 's/,//' | sed 's/ //g')" ./sw.ts --bundle --outfile=$(BUILD)/sw.js include $(TOP)/py/mkrules.mk