-
-
Notifications
You must be signed in to change notification settings - Fork 285
/
settings.py
117 lines (102 loc) · 4.38 KB
/
settings.py
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
# 警告! 文件夹的内容可能会被删除, 请确保路径没有重要文件
# WARNING! folders may get deleted during the execution
# make sure the folders not containing anything important!
# 路径结尾的斜杠不能省略
# ending slash in folders can NOT be omitted
import os
import platform
script_path = os.path.dirname(os.path.abspath(__file__))
DEBUG = False
# DEBUG = False
# excalidraw 自定义字体
# excalidraw custom font
excalidraw_font = f'{script_path}/font/muyao-shouxie.ttf'
if platform.system() == 'Linux':
# BASE_PATH 是工作目录
# BASE_PATH is the working directory
BASE_FOLDER = '/home/nate/soft/trilium/trilium-trans/'
# PATCH_FOLDER 是输出补丁的目录
# PATCH_FOLDER is the output for patch
PATCH_FOLDER = '/home/nate/soft/trilium/trilium-trans-patch/'
# TRANS_RELEASE_FOLDER 是翻译好的客户端发布的路径
# TRANS_RELEASE_FOLDER is the release directory for translated clients
TRANS_RELEASE_FOLDER = '/home/nate/soft/trilium/trilium-trans-release/'
else:
# MacOS
BASE_FOLDER = '/Users/nate/soft/trilium/trilium-trans/'
PATCH_FOLDER = '/Users/nate/soft/trilium/trilium-trans-patch/'
TRANS_RELEASE_FOLDER = '/Users/nate/soft/trilium/trilium-trans-release/'
# release文件名后缀
# release file name suffix
LANG = 'cn'
# 翻译者信息, 会在关于页面显示
# translator info, will be in about page
TRANSLATOR = 'Nriver'
TRANSLATOR_URL = 'https://github.com/Nriver/trilium-translation'
# 连不到GitHub需要设置代理 USE_PROXY=False 不会用代理
# Change following proxy setting if you need proxy to connect to GitHub. set USE_PROXY=False can ignore it.
# USE_PROXY = True
USE_PROXY = False
PROXIES = {
"http": "http://127.0.0.1:20809",
"https": "http://127.0.0.1:20809",
}
# 避免兼容性问题,强制使用某个版本的trilium
# To avoid compatibility issue, force to use certain version of trilium
VERSION_INFO_OVERRIDE = True
# VERSION_INFO_OVERRIDE = False
force_version_info = {
'name': 'v0.60.4 release',
'zipball_url': 'https://api.github.com/repos/zadam/trilium/zipball/v0.60.4',
'browser_download_url': 'https://github.com/zadam/trilium/releases/download/v0.60.4/trilium-linux-x64-0.60.4.tar.xz',
}
force_version_info_full = {
'name': 'v0.60.4 release',
'releases': {
'linux': {
'name': 'trilium-linux-x64-0.60.4.tar.xz',
'url': 'https://github.com/zadam/trilium/releases/download/v0.60.4/trilium-linux-x64-0.60.4.tar.xz',
},
'linux-server': {
'name': 'trilium-linux-x64-server-0.60.4.tar.xz',
'url': 'https://github.com/zadam/trilium/releases/download/v0.60.4/trilium-linux-x64-server-0.60.4.tar.xz',
},
'mac': {
'name': 'trilium-mac-x64-0.60.4.zip',
'url': 'https://github.com/zadam/trilium/releases/download/v0.60.4/trilium-mac-x64-0.60.4.zip',
},
'windows': {
'name': 'trilium-windows-x64-0.60.4.zip',
'url': 'https://github.com/zadam/trilium/releases/download/v0.60.4/trilium-windows-x64-0.60.4.zip',
},
},
}
VERSION_INFO_OVERRIDE_BETA = True
# VERSION_INFO_OVERRIDE_BETA = False
# beta
force_version_info_beta = {
'name': 'v0.61.5-beta release',
'zipball_url': 'https://github.com/zadam/trilium/archive/refs/tags/v0.61.5-beta.zip',
'browser_download_url': 'https://github.com/zadam/trilium/releases/download/v0.61.5-beta/trilium-linux-x64-0.61.5-beta.tar.xz',
}
force_version_info_full_beta = {
'name': 'v0.61.5-beta release',
'releases': {
'linux': {
'name': 'trilium-linux-x64-v0.61.5-beta.tar.xz',
'url': 'https://github.com/zadam/trilium/releases/download/v0.61.5-beta/trilium-linux-x64-0.61.5-beta.tar.xz',
},
'linux-server': {
'name': 'trilium-linux-x64-server-v0.61.5-beta.tar.xz',
'url': 'https://github.com/zadam/trilium/releases/download/v0.61.5-beta/trilium-linux-x64-server-0.61.5-beta.tar.xz',
},
'mac': {
'name': 'trilium-mac-x64-v0.61.5-beta.zip',
'url': 'https://github.com/zadam/trilium/releases/download/v0.61.5-beta/trilium-mac-x64-0.61.5-beta.zip',
},
'windows': {
'name': 'trilium-windows-x64-v0.61.5-beta.zip',
'url': 'https://github.com/zadam/trilium/releases/download/v0.61.5-beta/trilium-windows-x64-0.61.5-beta.zip',
},
},
}