Skip to content

Commit

Permalink
msys2-cn: Switch mirror from tuna to aliyun
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
  • Loading branch information
chawyehsu committed Feb 5, 2025
1 parent 20dfb11 commit c8d9df6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bucket/msys2-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "GPL-2.0-only|BSD-3-Clause",
"architecture": {
"64bit": {
"url": "https://mirrors.tuna.tsinghua.edu.cn/msys2/distrib/x86_64/msys2-base-x86_64-20241208.tar.xz",
"url": "https://mirrors.aliyun.com/msys2/distrib/x86_64/msys2-base-x86_64-20241208.tar.xz",
"hash": "dfaed9ee4e1a28c24ed06edbb0767846a1022eb3ec849d70b2b999129e472135",
"extract_dir": "msys64"
}
Expand All @@ -25,8 +25,8 @@
" # Ensure pacman mirrors have been updated",
" $pacmanConf = \"$dir\\etc\\pacman.conf\"",
" # Edit pacman.conf directly since pacman-mirrors sucks: https://github.com/msys2/MSYS2-packages/issues/1907#issuecomment-716615697",
" (Get-Content $pacmanConf) -replace 'Include = /etc/pacman.d/mirrorlist.mingw', 'Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/$repo/' | Set-Content $pacmanConf",
" (Get-Content $pacmanConf) -replace 'Include = /etc/pacman.d/mirrorlist.msys', 'Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch/' | Set-Content $pacmanConf",
" (Get-Content $pacmanConf) -replace 'Include = /etc/pacman.d/mirrorlist.mingw', 'Server = https://mirrors.aliyun.com/msys2/mingw/$repo/' | Set-Content $pacmanConf",
" (Get-Content $pacmanConf) -replace 'Include = /etc/pacman.d/mirrorlist.msys', 'Server = https://mirrors.aliyun.com/msys2/msys/$arch/' | Set-Content $pacmanConf",
" $logPath = \"$dir\\update.log\"",
" $stopSentence = 'there is nothing to do'",
" $cntSentence = 2",
Expand Down Expand Up @@ -120,14 +120,14 @@
],
"persist": "home",
"checkver": {
"url": "https://mirrors.tuna.tsinghua.edu.cn/msys2/distrib/x86_64/",
"url": "https://mirrors.aliyun.com/msys2/distrib/x86_64/",
"re": "msys2-base-x86_64-(\\d+).tar.xz",
"reverse": true
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://mirrors.tuna.tsinghua.edu.cn/msys2/distrib/x86_64/msys2-base-x86_64-$version.tar.xz"
"url": "https://mirrors.aliyun.com/msys2/distrib/x86_64/msys2-base-x86_64-$version.tar.xz"
}
}
}
Expand Down

0 comments on commit c8d9df6

Please sign in to comment.