windows: 国内使用 daocloud 加速下载 win7 的 frpc
Some checks are pending
运行主程序 / 运行主程序 (./reinstall.bat --debug --password 123@@@, windows-latest) (push) Waiting to run
运行主程序 / 运行主程序 (sudo bash reinstall.sh --debug --password 123@@@, ubuntu-latest) (push) Waiting to run
同步到 CNB / 同步到 CNB (push) Waiting to run

This commit is contained in:
bin456789 2025-12-29 23:48:27 +08:00
parent 0c5fac6d6b
commit 562d3b5265
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B
2 changed files with 9 additions and 3 deletions

View File

@ -60,6 +60,7 @@ get_frpc_url() {
mirror=$(
# nju 没有 win7 用的旧版
# github 不支持 ipv6
# daocloud 加速不支持 ipv6
# jsdelivr 不支持 github releases 文件
if is_ipv6_only; then
if is_need_old_version; then
@ -71,7 +72,7 @@ get_frpc_url() {
else
if is_in_china; then
if is_need_old_version; then
echo https://github.com/fatedier/frp/releases/download
echo https://files.m.daocloud.io/github.com/fatedier/frp/releases/download
else
echo https://mirrors.nju.edu.cn/github-release/fatedier/frp
fi

View File

@ -131,7 +131,12 @@ call :check_cygwin_installed || (
set dir=/sourceware/cygwin
)
rem 下载 Cygwin
rem daocloud 加速有 90 天缓存,且不支持 IPv6
rem https://github.com/DaoCloud/public-binary-files-mirror
rem 无法用查询字符串强制刷新缓存
rem https://files.m.daocloud.io/www.cloudflare.com/cdn-cgi/trace?a=1
rem https://files.m.daocloud.io/www.cloudflare.com/cdn-cgi/trace?b=2
rem 也就无法用 https://www.cygwin.com/setup-x86_64.exe?xxx=20250101 强制每天刷新缓存
if not exist setup-!CygwinArch!.exe (
call :download http://www.cygwin.com/setup-!CygwinArch!.exe %~dp0setup-!CygwinArch!.exe || goto :download_failed
)
@ -195,7 +200,7 @@ rem bitsadmin /transfer "%~3" /priority foreground %~1 %~2
:download
rem certutil 会被 windows Defender 报毒
rem windows server 2019 要用第二条 certutil 命令
echo Download: %~1 %~2
echo Downloading: %~1 %~2
del /q "%~2" 2>nul
if exist "%~2" (echo Cannot delete %~2 & exit /b 1)