-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.template.json
More file actions
108 lines (95 loc) · 2.44 KB
/
config.template.json
File metadata and controls
108 lines (95 loc) · 2.44 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
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
{
"# 配置文件说明": "这是AUR Update Checker的配置文件模板,可以根据需要修改以下配置项",
"# 配置文件版本": "1.0.1",
"# 使用说明": "可以通过以下方式指定配置文件路径:1. 环境变量AUR_UPDATE_CHECKER_CONFIG 2. 命令行参数--config或-c",
"# 示例": "AUR_UPDATE_CHECKER_CONFIG=/path/to/config.json ./main.py 或 ./main.py --config /path/to/config.json",
"database": {
"path": "~/.config/aur-update-checker-python/packages.db",
"backup_count": 3
},
"logging": {
"level": "info",
"file": "~/.config/aur-update-checker-python/aur-checker.log",
"console": true,
"max_size": 10485760,
"max_files": 5
},
"aur": {
"base_url": "https://aur.archlinux.org",
"timeout": 30
},
"upstream": {
"timeout": 30,
"user_agent": "AUR-Update-Checker/1.0",
"cache_time": 86400,
"retry": {
"count": 3,
"delay": 1
}
},
"github": {
"api_url": "https://api.github.com",
"token": "",
"per_page": 100
},
"gitee": {
"api_url": "https://gitee.com/api/v5",
"token": "",
"per_page": 100
},
"gitlab": {
"api_url": "https://gitlab.com/api/v4",
"token": "",
"per_page": 100
},
"npm": {
"registry": "https://registry.npmjs.org"
},
"pypi": {
"api_url": "https://pypi.org/pypi"
},
"system": {
"temp_dir": "/tmp/aur-update-checker",
"concurrent_checks": 5,
"package_manager": "auto"
},
"tools": {
"curl_path": ""
},
"scheduler": {
"enabled": true,
"aur_check_interval": 24,
"upstream_check_interval": 48,
"check_on_startup": false,
"notification_enabled": true
},
"ui": {
"theme": "system",
"font_size": 12,
"show_tray_icon": true,
"minimize_to_tray": true,
"start_minimized": false,
"show_name": true,
"show_aur_version": true,
"show_upstream_version": true,
"show_status": true,
"show_aur_check_time": true,
"show_upstream_check_time": true,
"show_checker_type": true,
"show_upstream_url": true,
"show_notes": true,
"close_action": "minimize",
"show_minimize_notification": true,
"text_alignment": {
"name": "center",
"aur_version": "center",
"upstream_version": "center",
"status": "center",
"aur_check_time": "center",
"upstream_check_time": "center",
"checker_type": "center",
"upstream_url": "center",
"notes": "center"
}
}
}