forked from hhj/subscript_template
change dist file name & add version code
This commit is contained in:
parent
76534820e9
commit
b82f50c9bf
32
dist/0.0.1_alpha.json
vendored
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": "自动填充内容"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
5
dist/0.0.1_beta.json → dist/Test.json
vendored
5
dist/0.0.1_beta.json → dist/Test.json
vendored
@ -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": [
|
4
main.py
4
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():
|
||||
|
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user