first commit
This commit is contained in:
commit
3553790475
27 files changed
+3839
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# 通过清华 TUNA 镜像为 MSYS2 安装 mingw-w64 gcc(Fyne/cgo 必需)
|
||||
set -e
|
||||
|
||||
for f in /etc/pacman.d/mirrorlist.*; do
|
||||
sed -i 's|repo.msys2.org|mirrors.tuna.tsinghua.edu.cn/msys2|g' "$f"
|
||||
done
|
||||
|
||||
echo "--- mirror ---"
|
||||
grep -m1 '^Server' /etc/pacman.d/mirrorlist.mingw64 || true
|
||||
|
||||
echo "--- sync db ---"
|
||||
pacman -Sy --noconfirm
|
||||
|
||||
echo "--- install gcc ---"
|
||||
pacman -S --noconfirm --needed mingw-w64-x86_64-gcc
|
||||
|
||||
echo "--- verify ---"
|
||||
/mingw64/bin/gcc.exe --version | head -n 1
|
||||
Reference in new issue
Block a user