|
5 | 5 | # 路径结尾的斜杠不能省略 |
6 | 6 | # ending slash in folders can NOT be omitted |
7 | 7 |
|
8 | | -# BASE_PATH 是工作目录 |
9 | | -# BASE_PATH is the working directory |
10 | | -# BASE_FOLDER = '/home/nate/soft/trilium/trilium-trans/' |
11 | | -BASE_FOLDER = '/Users/nate/soft/trilium/trilium-trans/' |
| 8 | +import platform |
12 | 9 |
|
13 | | -# PATCH_FOLDER 是输出补丁的目录 |
14 | | -# PATCH_FOLDER is the output for patch |
15 | | -# PATCH_FOLDER = '/home/nate/soft/trilium/trilium-trans-patch/' |
16 | | -PATCH_FOLDER = '/Users/nate/soft/trilium/trilium-trans-patch/' |
| 10 | +if platform.system() == 'Linux': |
| 11 | + # BASE_PATH 是工作目录 |
| 12 | + # BASE_PATH is the working directory |
| 13 | + BASE_FOLDER = '/home/nate/soft/trilium/trilium-trans/' |
| 14 | + |
| 15 | + # PATCH_FOLDER 是输出补丁的目录 |
| 16 | + # PATCH_FOLDER is the output for patch |
| 17 | + PATCH_FOLDER = '/home/nate/soft/trilium/trilium-trans-patch/' |
| 18 | + |
| 19 | + # TRANS_RELEASE_FOLDER 是翻译好的客户端发布的路径 |
| 20 | + # TRANS_RELEASE_FOLDER is the release directory for translated clients |
| 21 | + TRANS_RELEASE_FOLDER = '/home/nate/soft/trilium/trilium-trans-release/' |
| 22 | +else: |
| 23 | + # MacOS |
| 24 | + BASE_FOLDER = '/Users/nate/soft/trilium/trilium-trans/' |
| 25 | + PATCH_FOLDER = '/Users/nate/soft/trilium/trilium-trans-patch/' |
| 26 | + TRANS_RELEASE_FOLDER = '/Users/nate/soft/trilium/trilium-trans-release/' |
17 | 27 |
|
18 | | -# TRANS_RELEASE_FOLDER 是翻译好的客户端发布的路径 |
19 | | -# TRANS_RELEASE_FOLDER is the release directory for translated clients |
20 | | -# TRANS_RELEASE_FOLDER = '/home/nate/soft/trilium/trilium-trans-release/' |
21 | | -TRANS_RELEASE_FOLDER = '/Users/nate/soft/trilium/trilium-trans-release/' |
22 | 28 |
|
23 | 29 | # release文件名后缀 |
24 | 30 | # release file name suffix |
|
31 | 37 |
|
32 | 38 | # 连不到GitHub需要设置代理 USE_PROXY=False 不会用代理 |
33 | 39 | # Change following proxy setting if you need proxy to connect to GitHub. set USE_PROXY=False can ignore it. |
34 | | -USE_PROXY = True |
35 | | -# USE_PROXY = False |
| 40 | +# USE_PROXY = True |
| 41 | +USE_PROXY = False |
36 | 42 | PROXIES = { |
37 | 43 | "http": "socks5://127.0.0.1:10808", |
38 | 44 | "https": "socks5://127.0.0.1:10808" |
|
0 commit comments