From d45fc0ed1e31cc9a39f72ad2733a77bceb9faa13 Mon Sep 17 00:00:00 2001 From: biver Date: Sun, 19 Feb 2023 19:13:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BA=D0=BB=D1=8E=D1=87=D0=B0?= =?UTF-8?q?=D0=B5=D0=BC=20partitions.bin=20=D0=B8=D0=B7=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=8F=D0=B7=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D1=85=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D0=BF=D0=BE=D0=B4=D0=B3=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B5=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5=D1=80=D0=B0?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PrepareServer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PrepareServer.py b/PrepareServer.py index 6ab6d57a..7289a2f5 100644 --- a/PrepareServer.py +++ b/PrepareServer.py @@ -29,7 +29,8 @@ homeDir = os.path.expanduser('~') os.system(homeDir + "\.platformio\penv\Scripts\pio run") 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"}}') 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)