Scoop
Scoop copied to clipboard
Feature/support mirror configuration
Sometimes the address in the bucket becomes invalid or inaccessible Or it may be slow to visit in some areas, such as China
I modified the url parsing script and now it will parse the mirrirs property in config.json. which is a map type property
Below is my config.json
file
{
"SCOOP_BRANCH": "master",
"lastupdate": "2021-07-11T10:33:24.5707181+08:00",
"SCOOP_REPO": "https://github.com/lukesampson/scoop",
"aria2-enabled": false,
"list": "all",
"proxy": "127.0.0.1:10809",
"mirrors": {
"http://repo.msys2.org/": " https://repo.huaweicloud.com/msys2/"
}
}
At this time, scoop will download files from repo.huaweicloud.com
instead of repo.msys2.org
@r15ch13 Can you help me see if there is a problem? There seems to be something wrong with the automated test script
Please search https://github.com/chawyehsu/dorado for mirrors in China, and submit PR if any need.
What I want is to change the location of the package download through configuration. Instead of downloading the json file in the bucket from gitee or from github This PR is to replace the url by reading the configuration file