mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 14:12:16 +03:00
Исключаем partitions.bin из обязательных при подготовке сервера.
This commit is contained in:
@@ -29,7 +29,8 @@ homeDir = os.path.expanduser('~')
|
|||||||
os.system(homeDir + "\.platformio\penv\Scripts\pio run")
|
os.system(homeDir + "\.platformio\penv\Scripts\pio run")
|
||||||
os.system(homeDir + "\.platformio\penv\Scripts\pio run -t buildfs --disable-auto-clean")
|
os.system(homeDir + "\.platformio\penv\Scripts\pio run -t buildfs --disable-auto-clean")
|
||||||
|
|
||||||
if copyFileIfExist("firmware.bin", deviceName) and copyFileIfExist("littlefs.bin", deviceName) and copyFileIfExist("partitions.bin", deviceName):
|
if copyFileIfExist("firmware.bin", deviceName) and copyFileIfExist("littlefs.bin", deviceName):
|
||||||
|
copyFileIfExist("partitions.bin", deviceName)
|
||||||
versionsJson = json.loads('{"' + deviceName + '": {"0": "400"}}')
|
versionsJson = json.loads('{"' + deviceName + '": {"0": "400"}}')
|
||||||
with open("iotm/ver.json", "w", encoding='utf-8') as write_file:
|
with open("iotm/ver.json", "w", encoding='utf-8') as write_file:
|
||||||
json.dump(versionsJson, write_file, ensure_ascii=False, indent=4, sort_keys=False)
|
json.dump(versionsJson, write_file, ensure_ascii=False, indent=4, sort_keys=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user