Download html files during OTA

This commit is contained in:
Magnus
2021-03-27 20:26:35 +01:00
parent 384ec017a8
commit ff6a35096f
6 changed files with 111 additions and 29 deletions

View File

@ -19,16 +19,6 @@ def after_build(source, target, env):
print( "Copy file : " + source + " -> " + target )
shutil.copyfile( source, target )
target = dir + "\\bin\\version.json"
ver = get_build_flag_value("CFG_APPVER")
print( "Creating version.json" )
f = open( target, "w" )
f.write( "{ \"project\":\"gravmon\", \"version\":" + ver + " }" )
f.close()
print( "Adding custom build step: ")
#env.AddPreAction("buildprog", after_build)
print( "Adding custom build step (copy firmware): ")
env.AddPostAction("buildprog", after_build)
#env.AddPreAction("upload", after_build)
#env.AddPostAction("upload", after_build)