-
Notifications
You must be signed in to change notification settings - Fork 0
/
app
117 lines (107 loc) · 5.72 KB
/
app
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
...,
sourceProcessor: {
appsUnlock: {
authUrl: "https://xxx.com/auth.php", # 验证地址,即进行解锁时,所提交的密码将传到此链接进行权限校验
actions: [ # 解锁弹框所显示的选项,此为数组,即可显示多项
{
title: "联系作者", # 解锁弹框的选项标题
openUrl: "https://nyxz166.cn/GBox" # 解锁弹框的选项标题所对应的具体行为,点击后,会跳转到本链接
}
],
description: "此源需要联系作者授权" # 源解锁的说明
}
},
"appRepositories": [
{
"lock": true, # 需要上锁的app,添加此字段,并设置为true
"hide": true, # 非必须字段,若添加此字段,则解锁前隐藏,解锁后才显示
"appType": "SELF_SIGN",
"appCateIndex": 1,
"appUpdateTime": "2020-05-01T08:00:00+0800",
"appName": "测试包",
"appVersion": "1.0",
"appPlist": "https://www.lanzous.com/i7rn4hi",
"appDescription": "签名测试用,点下载,然后签名,再安装,如果能正常打开,则证明签名成功"
},
....
]
},
源规范说明
以下为完整源规范说明,已更新至v1.1.2
{
"version": "1.1.2", # 源版本号,当前为1.1.2, 只能向下兼容
"sourceName": "GBox官方源", # 源名称
"sourceAuthor": "Rosi", # 源作者
"sourceLinkTitle": "主页", # 链接标题,将于源主页的右上角显示
"sourceLinkUrl": "https://gbox.run", # 目标链接
"sourceImage": "http://xxx.com/src.png", # 源图片链接
"sourceUpdateTime": "2019-10-10T13:00:00+0800", # 源更新时间(此为UTC时间,北京为东八区,所以以+0800表示),注意如果修改了app列表,而不更新此时间,GBox不会去解析此源的app列表
"sourceDescription": "源的简单描述",
# 授权源字段说明
sourceProcessor: {
appsUnlock: {
authUrl: "https://xxx.com/auth.php", # 验证地址,即进行解锁时,所提交的密码将传到此链接进行权限校验
actions: [ # 解锁弹框所显示的选项,此为数组,即可显示多项
{
title: "联系作者", # 解锁弹框的选项标题
openUrl: "https://nyxz166.cn/GBox" # 解锁弹框的选项标题所对应的具体行为,点击后,会跳转到本链接
}
],
description: "此源需要联系作者授权" # 源解锁的说明
}
},
# End 授权源字段说明
# 源的app分类排序,以0为起始计数,如在此排序中"福利"分类的下标为0,"工具"则为1
"appCategories": [
"福利",
"工具"
],
"appRepositories": [
{
# app类型,共有三种类型:
# SHAREING 分享类型,即直接提取app store得来的ipa,不能签名,直接安装,需要在app store登录对应的购买购买账号,即可正常使用,永不掉签
# SELF_SIGN 自签类型,需要签名后,才能正常安装,否则安装后图标为灰色不可用
# ENT_SIGN 企业签类型,如果该企业签未被注销,则可直接安装,否则需要签名后安装
# LINK 链接类型,直接打开网址,广告或宣传用途,需要填写appLink字段
"appType": "SHAREING",
"appCateIndex": 0, # app分类下标号,此处为0对应上面的分类"福利"
"appUpdateTime": "2019-10-13T08:00:00+0800", # UTC时间
"appName": "App名称",
"appVersion": "1.1", # app版本号
"appImage": "https://xxx.com/app.png", # app图标链接
"appPackage": "https://xx.com/app.ipa", # app的ipa包链接
"appDescription": "App的简短描述"
},
{
"appType": "ENT_SIGN", # 企业签
"appCateIndex": 1,
"appUpdateTime": "2019-10-03T08:00:00+0800",
"appName": "xxx",
# 此字段为app的plist配置链接,如果设置了此字段,appName,appVersion, appImage,appPackage都可省略, 但以上字段如果有设置,则优先级更高
"appPlist": "https://xxx.plist"
},
{
"appType": "LINK", # 链接类型,需要填写appLink字段
"appCateIndex": 1,
"appUpdateTime": "2019-12-27T9:30:00+0800",
"appName": "GBox官网",
"appVersion": "1.0",
"appImage": "https://dev.tencent.com/u/wallace_leung/p/AppHub/git/raw/master/Xero/icon512.png",
"appLink": "https://gbox.run", # 目录链接
"appDescription": "网页连接测试"
},
# 上锁app样例
{
"lock": true, # 需要上锁的app,添加此字段,并设置为true
"hide": true, # 非必须字段,若添加此字段,则解锁前隐藏,解锁后才显示
"appType": "SELF_SIGN",
"appCateIndex": 1,
"appUpdateTime": "2020-05-01T08:00:00+0800",
"appName": "测试包",
"appVersion": "1.0",
"appPlist": "https://www.lanzous.com/i7rn4hi",
"appDescription": "签名测试用,点下载,然后签名,再安装,如果能正常打开,则证明签名成功"
}
]
}