From b82f50c9bf4607ba90a09ac4176acf952619ea9b Mon Sep 17 00:00:00 2001 From: gorojack <1937047112@qq.com> Date: Fri, 19 Jul 2024 13:30:52 +0800 Subject: [PATCH] change dist file name & add version code --- dist/0.0.1_alpha.json | 32 ----------------------------- dist/{0.0.1_beta.json => Test.json} | 5 +++-- main.py | 4 ++-- subscription.py | 6 ++++-- 4 files changed, 9 insertions(+), 38 deletions(-) delete mode 100644 dist/0.0.1_alpha.json rename dist/{0.0.1_beta.json => Test.json} (95%) diff --git a/dist/0.0.1_alpha.json b/dist/0.0.1_alpha.json deleted file mode 100644 index 0d26a5a..0000000 --- a/dist/0.0.1_alpha.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "version": "0.0.1_alpha", - "apps": { - "hhjapp": { - "hhjapp": { - "packageName": "tech.cqxqg.hhjapp", - "name": "小新记账", - "version": "1.0.0", - "rules": [ - { - "key": 0, - "selector": "[text='记账']", - "action": "click" - }, - { - "key": 1, - "selector": "[desc='备注'] + Button + EditText", - "action": "click", - "actionDelay": 50 - }, - { - "key": 2, - "selecotr": "[desc='备注'] + Button + EditText]", - "preAction": 1, - "action": "setText", - "args": "自动填充内容" - } - ] - } - } - } -} \ No newline at end of file diff --git a/dist/0.0.1_beta.json b/dist/Test.json similarity index 95% rename from dist/0.0.1_beta.json rename to dist/Test.json index b0cc3c4..afbe9bd 100644 --- a/dist/0.0.1_beta.json +++ b/dist/Test.json @@ -1,7 +1,8 @@ { "key": -1, - "name": "Test Subscription", - "version": "0.0.1_beta", + "name": "Test", + "version": "0.0.2_beta", + "versionCode": 3, "global": { "name": "全局测试", "rules": [ diff --git a/main.py b/main.py index 9f697e9..44d3bd9 100644 --- a/main.py +++ b/main.py @@ -1,9 +1,9 @@ import os import json -from subscription import get_subscription, version +from subscription import get_subscription, name -targetFile = "dist/%s.json" % version +targetFile = "dist/%s.json" % name def main(): diff --git a/subscription.py b/subscription.py index 09fa208..54c31bf 100644 --- a/subscription.py +++ b/subscription.py @@ -3,8 +3,9 @@ import os from global_rules import global_rules key = -1 -name = "Test Subscription" -version = "0.0.1_beta" +name = "Test" +version = "0.0.2_beta" +version_code = 3 def get_subscription(): @@ -17,6 +18,7 @@ def get_subscription(): "key": key, "name": name, "version": version, + "versionCode": version_code, "global": global_rules, "apps": apps_arr, }