From 1cfc5be36a53fdee692d3f759f50cbecd2510a32 Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Sun, 24 Mar 2024 17:43:08 -0400 Subject: [PATCH] Make the dashboard bake its version --- Makefile | 1 + src/index.html | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 06b28de..2332eef 100644 --- a/Makefile +++ b/Makefile @@ -30,3 +30,4 @@ stage: # Prepares dist/ for deployment make build cp entrypoint.sh $(STAGEDIR) cp run.bat $(STAGEDIR) + find dist/ -type f -exec sed -i 's/%baked_ver%/${shell git describe --always}/g' {} + diff --git a/src/index.html b/src/index.html index 1a997cd..31cd0e3 100644 --- a/src/index.html +++ b/src/index.html @@ -31,6 +31,7 @@ + Dashboard version %baked_ver%