File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858
5959 # Inject DEV version (visual display) and JS constant with DEV-EPOCH format
6060 DEV_EPOCH=$(date -u +%s)
61- sed -i 's|MeshCore Wardrive</h1>|MeshCore Wardrive <span class="text-sm text-slate-400">DEV-'"${DEV_EPOCH}"'</span></h1>|' _site/dev/index.html
61+ # Replace the visible version in the dedicated span (this is what the UI shows)
62+ sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-sm text-slate-400">DEV-'"${DEV_EPOCH}"'</span>|' _site/dev/index.html
63+ # Inject into JS constant
6264 sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "DEV-'"${DEV_EPOCH}"'";|' _site/dev/content/wardrive.js
63-
65+
6466 find _site -name ". git" -exec rm -rf {} + 2>/dev/null || true
6567 find _site -name ".github" -exec rm -rf {} + 2>/dev/null || true
6668
You can’t perform that action at this time.
0 commit comments