change dist file name & add version code

This commit is contained in:
gorojack 2024-07-19 13:30:52 +08:00
parent 76534820e9
commit b82f50c9bf
4 changed files with 9 additions and 38 deletions

32
dist/0.0.1_alpha.json vendored

@ -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": "自动填充内容"
}
]
}
}
}
}

@ -1,7 +1,8 @@
{ {
"key": -1, "key": -1,
"name": "Test Subscription", "name": "Test",
"version": "0.0.1_beta", "version": "0.0.2_beta",
"versionCode": 3,
"global": { "global": {
"name": "全局测试", "name": "全局测试",
"rules": [ "rules": [

@ -1,9 +1,9 @@
import os import os
import json 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(): def main():

@ -3,8 +3,9 @@ import os
from global_rules import global_rules from global_rules import global_rules
key = -1 key = -1
name = "Test Subscription" name = "Test"
version = "0.0.1_beta" version = "0.0.2_beta"
version_code = 3
def get_subscription(): def get_subscription():
@ -17,6 +18,7 @@ def get_subscription():
"key": key, "key": key,
"name": name, "name": name,
"version": version, "version": version,
"versionCode": version_code,
"global": global_rules, "global": global_rules,
"apps": apps_arr, "apps": apps_arr,
} }