first commit

This commit is contained in:
hero920103 committed 2026-10-27 17:58:28 +08:00
commit 3553790475
27 files changed
+3839

No files matched your search

+19
View File
@@ -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