-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcreate_data.py
More file actions
64 lines (59 loc) · 1.82 KB
/
create_data.py
File metadata and controls
64 lines (59 loc) · 1.82 KB
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
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import json
data = {}
# 基础文件
data['base_files'] = []
data['base_files'].append(
(
"ddlc.zip",
"https://disk.edgemonix.top:28991/api/v3/slave/source/4194304/dXBsb2Fkcy8xL-WbvuW6ii8xX0hKN0pJUlFuX2RkbGMtd2luLnppcA/ddlc-win.zip?sign=BD-hzhfvNvGYSgqP8IOh57dRRTjCS6jyHHF1j0ATWzE%3D%3A0"
)
)
data['base_files'].append(
(
"ddlc.zip",
"https://link.jscdn.cn/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBdXhYOTVIVGRJNkxtVXp5aVQ1R3ZnS2VDQkpNP2U9SGRsNUFV.zip"
)
)
data['extra_files'] = []
# 名称, 下载链接, 下载到相对路径, 额外操作
# 额外操作:
# 0. None - 不指定额外操作
# 1. ASK_DOWNLOAD - 下载前进行询问,在旧版中会直接下载
# 2. EXTRACT_EXTRA - 解压,并以扩展内容安装
# 只在安装时下载
data['extra_files'].append(
(
"汉化说明.txt",
r"https://raw.githubusercontent.com/Mon1-innovation/MAS-Simplified-Chinese-Patch/main/%E6%B1%89%E5%8C%96%E8%AF%B4%E6%98%8E.txt",
"./",
None
)
)
data['extra_files'].append(
(
"如何更新.txt",
r"https://raw.githubusercontent.com/Mon1-innovation/MAS-Simplified-Chinese-Patch/main/%E5%A6%82%E4%BD%95%E6%9B%B4%E6%96%B0.txt",
"./",
None
)
)
data['extra_files'].append(
(
"sp_zhcn.zip",
r"https://raw.githubusercontent.com/Mon1-innovation/MAS-Simplified-Chinese-Patch/main/%E7%B2%BE%E7%81%B5%E5%8C%85%E6%B1%89%E5%8C%96.zip",
"./cache",
"EXTRACT_EXTRA"
)
)
data['extra_files'].append(
(
"chinese_patch.zip",
r"http://sp2.0721play.icu/d/MAS/MAS-PC/ChinesePatch.zip",
"./cache",
"EXTRACT_EXTRA"
)
)
with open('extra_file.json', 'w', encoding = 'utf-8') as files:
files.write(json.dumps(data))