Ver Fonte

Version Update

naibo há 2 anos atrás
pai
commit
f4a8c7aed9

+ 1 - 1
ElectronJS/每次发布之前要检查的事项.md

@@ -1,3 +1,3 @@
 - 删除chrome的install文件夹
-- 修改logic.js及logic_CN.js, ElectronJS/package.json,Manifestv3/package.json,easyspider_executestage.py中的版本号
+- 修改logic.js及logic_CN.js, ElectronJS/package.json,manifest_v3/package.json,easyspider_executestage.py中的版本号
 - 更新最新的tasks文件夹

+ 1 - 1
ExecuteStage/.vscode/launch.json

@@ -12,7 +12,7 @@
             "console": "integratedTerminal",
             "justMyCode": true,
             // "args": ["--id", "38", "--read_type", "local", "--headless", "1"]
-            "args": ["--id", "23", "--headless", "0"]
+            "args": ["--id", "26", "--headless", "0"]
         }
     ]
 }

+ 11 - 0
ExecuteStage/easyspider_executestage.py

@@ -996,6 +996,17 @@ if __name__ == '__main__':
             service = json.loads(content)  # 加载服务信息
     print("name: ", service["name"])
     procedure = service["graph"]  # 程序执行流程
+    try:
+        if service["version"] != c.version:
+            print("版本不一致,请使用" + service["version"] + "版本的EasySpider运行该任务")
+            print("Version not match, please use EasySpider " + service["version"] + " to run this task")
+            browser.quit()
+            sys.exit()
+    except:
+        print("版本不一致,请使用v0.2.0版本的EasySpider运行该任务")
+        print("Version not match, please use EasySpider v0.2.0 to run this task")
+        browser.quit()
+        sys.exit()
     links = list(filter(isnull, service["links"].split("\n")))  # 要执行的link的列表
     OUTPUT = []  # 采集的数据
     OUTPUT.append([])  # 添加表头

+ 1 - 1
Extension/manifest_v3/package.json

@@ -1,6 +1,6 @@
 {
   "name": "EasySpider",
-  "version": "0.2.0",
+  "version": "0.3.0",
   "type": "module",
   "scripts": {
     "build": "rollup -c",