From 755b336707b0f72878a06256a4dcd6aa8f8b6ce0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 27 Dec 2024 15:08:28 +0800 Subject: [PATCH] fix: ci --- iot_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iot_upload.py b/iot_upload.py index 6eefd50..e7875d7 100644 --- a/iot_upload.py +++ b/iot_upload.py @@ -187,7 +187,7 @@ def build_the_current_windowsApp(name): with open(the_last_windowsAppZIP) as f: content1 = f.read() with open(the_current_windowsAppZIP) as f: content2 = f.read() - if md5(content1.encode("utf8")).hexdigest() != md5(content2.encode("utf8")).hexdigest(): + if md5(content1).hexdigest() != md5(content2).hexdigest(): print ("比对结果:程序版本已更新") os.system('mkdir -p /tmp/a/ /tmp/b/ /tmp/IOTContainer/') os.system('unzip ' + the_last_windowsAppZIP + ' -d /tmp/a/')