Scoop icon indicating copy to clipboard operation
Scoop copied to clipboard

Feature/support mirror configuration

Open jilliss opened this issue 3 years ago • 3 comments

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.jsonfile

{
  "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

jilliss avatar Jul 11 '21 04:07 jilliss

@r15ch13 Can you help me see if there is a problem? There seems to be something wrong with the automated test script

jilliss avatar Jul 11 '21 05:07 jilliss

Please search https://github.com/chawyehsu/dorado for mirrors in China, and submit PR if any need.

niheaven avatar Jul 12 '21 01:07 niheaven

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

jilliss avatar Jul 12 '21 02:07 jilliss