1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 06:53:07 +01:00

prepare github release flow and version handling

This commit is contained in:
andreas
2021-11-07 20:48:28 +01:00
parent f3873cf6b3
commit 712829c7e4
6 changed files with 126 additions and 4 deletions

View File

@@ -5,6 +5,8 @@ import os
import sys
import inspect
import json
from datetime import datetime
Import("env")
GEN_DIR='generated'
CFG_FILE='web/config.json'
FILES=['web/index.html',CFG_FILE,'web/index.js','web/index.css']
@@ -80,4 +82,6 @@ if not checkDir():
for f in FILES:
print("compressing %s"%f)
compressFile(f)
generateCfg()
generateCfg()
version=datetime.now().strftime("%Y%m%d-%H%M")
env.Append(CPPDEFINES=[('GWDEVVERSION',version)])