@@ -168,6 +168,19 @@ jobs:
168168 fi
169169 shell : bash
170170
171+ - name : Download China IP list
172+ if : startsWith(github.ref, 'refs/tags/')
173+ run : |
174+ echo "Downloading latest China IP list..."
175+ curl -L -o chn_ip.txt "https://raw.githubusercontent.com/mayaxcn/china-ip-list/master/chn_ip.txt" || echo "Failed to download, will skip"
176+ if [ -f "chn_ip.txt" ]; then
177+ echo "✓ China IP list downloaded successfully"
178+ wc -l chn_ip.txt
179+ else
180+ echo "⚠ China IP list download failed, release will continue without it"
181+ fi
182+ shell : bash
183+
171184 - name : Prepare release files
172185 if : startsWith(github.ref, 'refs/tags/')
173186 run : |
@@ -176,6 +189,12 @@ jobs:
176189 # Go 可执行文件
177190 cp ech-workers${{ matrix.exe_ext }} release/
178191
192+ # 中国IP列表文件(离线版本)
193+ if [ -f "chn_ip.txt" ]; then
194+ cp chn_ip.txt release/
195+ echo "✓ China IP list included in release"
196+ fi
197+
179198 # GUI(仅桌面版)
180199 if [ "${{ matrix.enable_gui }}" = "true" ]; then
181200 if [ "${{ matrix.goos }}" == "windows" ]; then
@@ -200,6 +219,9 @@ jobs:
200219 echo ""
201220 echo "Files:"
202221 echo "- ech-workers${{ matrix.exe_ext }}: Go compiled core proxy program"
222+ if [ -f "release/chn_ip.txt" ]; then
223+ echo "- chn_ip.txt: China IP list (offline version)"
224+ fi
203225 if [ "${{ matrix.enable_gui }}" = "true" ]; then
204226 if [ "${{ matrix.goos }}" == "windows" ]; then
205227 echo "- ECHWorkersGUI.exe: Python GUI client (standalone executable)"
0 commit comments