Download html files during OTA
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user