From 160b07cdca5bca8495901ac604c3efa92be1c6bd Mon Sep 17 00:00:00 2001 From: DustinWin <45238096+DustinWin@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=AF=81=E4=B9=A6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=96=B9=E5=BC=8F=EF=BC=8C=E5=8E=9F=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=B7=B2=E5=81=9C=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bin_update.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bin_update.yml b/.github/workflows/bin_update.yml index b33bd00..b7a6308 100644 --- a/.github/workflows/bin_update.yml +++ b/.github/workflows/bin_update.yml @@ -98,7 +98,14 @@ jobs: rm -rf Yacd-meta-gh-pages rm -rf metacubexd-gh-pages echo 面板更新完成! - + + - name: Update certificate + run: | + wget https://raw.githubusercontent.com/curl/curl/master/scripts/mk-ca-bundle.pl + chmod +x ./mk-ca-bundle.pl + ./mk-ca-bundle.pl + rm -f mk-ca-bundle.pl certdata.txt + - name: Update GeoIP run: | cd bin @@ -112,7 +119,7 @@ jobs: curl -kfSL -o geodata/geosite_cn.db https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite-cn.db curl -kfSL -o geodata/srs_geoip_cn.srs https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs curl -kfSL -o geodata/srs_geosite_cn.srs https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs - curl -kfSL -o fix/ca-certificates.crt https://raw.githubusercontent.com/P3TERX/ca-certificates.crt/download/ca-certificates.crt + mv -f ./ca-bundle.crt ./fix/ca-certificates.crt sed -i "s/GeoIP_v=.*/GeoIP_v=$(date '+%Y%m%d')/" version #修改版本号 echo 数据库及根证书文件更新完成!