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:
@@ -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)])
|
||||
Reference in New Issue
Block a user