File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 cp -r dev-content/* _site/dev/ 2>/dev/null || true
5757 cp -r dev-content/content _site/dev/ 2>/dev/null || true
5858
59- # Inject DEV badge + epoch (visual display) and JS constant with DEV-EPOCH format
59+ # Inject DEV version (visual display) and JS constant with DEV-EPOCH format
6060 DEV_EPOCH=$(date -u +%s)
61- # Replace the visible version text (whatever it is) with DEV + epoch
62- sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-xs text-slate-400">DEV-'${DEV_EPOCH}'</span>|' _site/dev/index.html
63- # Inject into JS constant
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
6462 sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "DEV-'"${DEV_EPOCH}"'";|' _site/dev/content/wardrive.js
6563
6664 find _site -name ". git" -exec rm -rf {} + 2>/dev/null || true
You can’t perform that action at this time.
0 commit comments