Skip to content

Commit

Permalink
new config item: release_download_url_template
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-1F committed Apr 14, 2023
1 parent 116dad7 commit 8e729ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions mcdreforged_plugin_manager/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Configure(Serializable):
check_update: bool = True
install_path: str = 'plugins'
proxy: ProxyConfig = ProxyConfig.get_default()
release_download_url_template: str = '{url}'

@property
def request_proxy(self) -> dict:
Expand Down
6 changes: 5 additions & 1 deletion resources/default_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ cache_interval: 2
# 若设为 true,插件将在每次定时更新插件索引后自动检查更新
check_update: true


# The path to install the plugin, should be one of the value of 'plugin_directories' of the MCDR config
# 安装插件的位置,应是 MCDR 配置中的 'plugin_directories' 中的一个
install_path: plugins

# The url template used when downloading GitHub release assets, where '{url}' will be replaced with the actual url
# Example using ghproxy: https://ghproxy.com/{url}, the download url will be https://ghproxy.com/https://github.com/user/repo/releases/download/...
# 在下载 GitHub 发布素材时使用的 url 模版,'{url}' 将被替换为实际的 url
# 使用 ghproxy 的例子: https://ghproxy.com/{url},实际下载 url 将被替换为 https://ghproxy.com/https://github.com/user/repo/releases/download/...
release_download_url_template: '{url}'

# Proxy addresses, both http and https is optional
# 代理地址,http 与 https 都是可选的
Expand Down

0 comments on commit 8e729ac

Please sign in to comment.