Skip to content

Commit

Permalink
Fix version code again
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Apr 30, 2024
1 parent 5dbbe0c commit 1524cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1524cb8

Please sign in to comment.