From 2bbcd148a875fdd2cd0f38716be057d6b69ac7da Mon Sep 17 00:00:00 2001 From: GiriNeko Date: Tue, 5 Aug 2025 16:56:20 +0800 Subject: [PATCH 1/9] remove: cache --- src/index.html | 12 ++++++------ util/generator.sh | 8 ++++---- util/parse.sh | 14 ++++++++++---- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/index.html b/src/index.html index 36a20df..6fc9ab0 100644 --- a/src/index.html +++ b/src/index.html @@ -168,7 +168,7 @@ 点击下载 备选地址 - 缓存服务器 + @@ -192,7 +192,7 @@ 点击下载 备选地址 - 缓存服务器 + @@ -218,7 +218,7 @@ 点击下载 备选地址 - 缓存服务器 + @@ -242,7 +242,7 @@ 点击下载 备选地址 - 缓存服务器 + @@ -268,7 +268,7 @@ 点击下载 备选地址 - 缓存服务器 + @@ -292,7 +292,7 @@ 点击下载 备选地址 - 缓存服务器 + diff --git a/util/generator.sh b/util/generator.sh index 7cbb5f3..aecc1fa 100644 --- a/util/generator.sh +++ b/util/generator.sh @@ -5,14 +5,14 @@ echo '-------------------------------------' for i in $@ do - cache="http://101.96.9.133/" + # cache="http://101.96.9.133/" version=$(sed -n '1p' ./tmp/parse/${i}-result.info) dl_base=$(sed -n '2p' ./tmp/parse/${i}-result.info) dl_alt_base=$(sed -n '3p' ./tmp/parse/${i}-result.info) dl_file=$(sed -n '4p' ./tmp/parse/${i}-result.info) dl="https://"${dl_base}${dl_file} dl_alt="https://"${dl_alt_base}${dl_file} - dl_cache=${cache}${dl_alt_base}${dl_file} + # dl_cache=${cache}${dl_alt_base}${dl_file} sha256=$(sed -n '5p' ./tmp/parse/${i}-result.info) size_raw=$(sed -n '6p' ./tmp/parse/${i}-result.info) size=$(awk 'BEGIN{printf "%.3f",('$size_raw'/'1048576')}')" MB" @@ -21,13 +21,13 @@ do sed -i "s|{{${i}-SHA256}}|$sha256|g" tmp/index.html sed -i "s|{{${i}-dl-main}}|$dl|g" tmp/index.html sed -i "s|{{${i}-dl-alternative}}|$dl_alt|g" tmp/index.html - sed -i "s|{{${i}-dl-cache}}|$dl_cache|g" tmp/index.html + # sed -i "s|{{${i}-dl-cache}}|$dl_cache|g" tmp/index.html sed -i "s|{{${i}-Size}}|$size|g" tmp/index.html sed -i "s|{{${i}-Version}}|$version|g" tmp/chrome.xml sed -i "s|{{${i}-SHA256}}|$sha256|g" tmp/chrome.xml sed -i "s|{{${i}-dl-main}}|$dl|g" tmp/chrome.xml sed -i "s|{{${i}-dl-alternative}}|$dl_alt|g" tmp/chrome.xml - sed -i "s|{{${i}-dl-cache}}|$dl_cache|g" tmp/chrome.xml + # sed -i "s|{{${i}-dl-cache}}|$dl_cache|g" tmp/chrome.xml sed -i "s|{{${i}-Size}}|$size_raw|g" tmp/chrome.xml done \ No newline at end of file diff --git a/util/parse.sh b/util/parse.sh index 5bdb4c5..4378172 100644 --- a/util/parse.sh +++ b/util/parse.sh @@ -20,10 +20,16 @@ do sed -i 's|https://||g' ./tmp/parse/${i}.info sed -i 's| ||g' ./tmp/parse/${i}.info - sed -n '14p' ./tmp/parse/${i}.info > ./tmp/parse/${i}-result.info - sed -n '8p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info + # version + sed -n '16p' ./tmp/parse/${i}.info > ./tmp/parse/${i}-result.info + # download base sed -n '10p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info - sed -n '23p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info - sed -n '22p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info + # download alternative base + sed -n '12p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info + # download file + sed -n '25p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info + # sha256 sed -n '24p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info + # size + sed -n '26p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info done From 8266d7a3e53db578f6066552539a4ff1335844ca Mon Sep 17 00:00:00 2001 From: GiriNeko Date: Tue, 5 Aug 2025 16:58:10 +0800 Subject: [PATCH 2/9] remove: analyze code --- src/index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.html b/src/index.html index 6fc9ab0..573a608 100644 --- a/src/index.html +++ b/src/index.html @@ -316,7 +316,6 @@ - From 1ed7e4cef75406fb68f1720ba4cd1f9fe4c2d9bc Mon Sep 17 00:00:00 2001 From: GiriNeko Date: Tue, 5 Aug 2025 17:06:08 +0800 Subject: [PATCH 4/9] vendor: change domain --- README.md | 4 ++-- src/index.html | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ae058c6..72b3971 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,13 @@ XML Format Output ### Not compressed (For development) ``` -GET https://chrome-dl.com/api/chrome.xml +GET https://chrome.ntr.sb/api/chrome.xml ``` ### Compressed (For production) ``` -GET https://chrome-dl.com/api/chrome.min.xml +GET https://chrome.ntr.sb/api/chrome.min.xml ``` ## Advanced - Google Updater (Omaha) API diff --git a/src/index.html b/src/index.html index 77f47ea..68161ef 100644 --- a/src/index.html +++ b/src/index.html @@ -116,7 +116,7 @@ - + @@ -301,15 +301,15 @@

注意

项目开源地址

- https://github.com/ettingshausen/CheckChrome + https://github.com/GiriNeko/CheckChrome

API(XML 格式)

- https://ettingshausen.github.io/CheckChrome/api/chrome.xml(未压缩)
- https://ettingshausen.github.io/CheckChrome/api/chrome.min.xml(已压缩) + https://chrome.ntr.sb/api/chrome.xml(未压缩)
+ https://chrome.ntr.sb/api/chrome.min.xml(已压缩)

对于需要 Chrome 离线包数据,请使用本站开放的 API,完全没有必要 用 iframe 嵌套或反代本站,或者用爬虫解析本站 HTML 来获取数据。 From 553818c8cd21ef2f8f9f7beba42edf7c906c98f9 Mon Sep 17 00:00:00 2001 From: GiriNeko Date: Tue, 5 Aug 2025 17:08:16 +0800 Subject: [PATCH 5/9] fix: fix api name. --- src/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 68161ef..2dae02a 100644 --- a/src/index.html +++ b/src/index.html @@ -308,7 +308,7 @@

https://chrome.ntr.sb/api/chrome.xml(未压缩)
- https://chrome.ntr.sb/api/chrome.min.xml(已压缩)

对于需要 Chrome 离线包数据,请使用本站开放的 API,完全没有必要 用 iframe 嵌套或反代本站,或者用爬虫解析本站 HTML From 2fe114d81c4549b7effc64d464be250097574ec4 Mon Sep 17 00:00:00 2001 From: GiriNeko Date: Tue, 5 Aug 2025 17:14:38 +0800 Subject: [PATCH 6/9] feat: workflow add upyun. --- .../workflows/{main.yml => deploy2pages.yml} | 2 +- .github/workflows/deploy2upyun.yml | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) rename .github/workflows/{main.yml => deploy2pages.yml} (94%) create mode 100644 .github/workflows/deploy2upyun.yml diff --git a/.github/workflows/main.yml b/.github/workflows/deploy2pages.yml similarity index 94% rename from .github/workflows/main.yml rename to .github/workflows/deploy2pages.yml index 57b0557..687f3fe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/deploy2pages.yml @@ -1,4 +1,4 @@ -name: Latest Build +name: Latest Build to GitHub Pages on: schedule: - cron: '0 20 * * 2' # 每周二晚上8点触发 diff --git a/.github/workflows/deploy2upyun.yml b/.github/workflows/deploy2upyun.yml new file mode 100644 index 0000000..220629f --- /dev/null +++ b/.github/workflows/deploy2upyun.yml @@ -0,0 +1,28 @@ +name: Latest Build to UPYUN +on: + schedule: + - cron: '0 20 * * 2' # 每周二晚上8点触发 + push: + branches: + - master # 你可以根据需要更改分支名称 +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Run custom script + run: | + sudo apt-get update + sudo apt-get install -y libxml2-utils + chmod +x run.sh + ./run.sh + + - name: Deploy tp upyun + uses: her-cat/upyun-deployer@v1.0.3 + with: + bucket: ${{ secrets.UPYUN_BUCKET }} + operator: ${{ secrets.UPYUN_OPERATOR_NAME }} + password: ${{ secrets.UPYUN_OPERATOR_PWD }} + dir: './public' + publish_dir: '/' From a5cb11457aab5c827abd75ae3fd10c8cec7e1d2e Mon Sep 17 00:00:00 2001 From: GiriNeko Date: Tue, 5 Aug 2025 17:33:13 +0800 Subject: [PATCH 7/9] fix: parse info --- util/parse.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/util/parse.sh b/util/parse.sh index 4378172..e672ac6 100644 --- a/util/parse.sh +++ b/util/parse.sh @@ -21,15 +21,15 @@ do sed -i 's| ||g' ./tmp/parse/${i}.info # version - sed -n '16p' ./tmp/parse/${i}.info > ./tmp/parse/${i}-result.info + sed -n '14p' ./tmp/parse/${i}.info > ./tmp/parse/${i}-result.info # download base - sed -n '10p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info + sed -n '8p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info # download alternative base - sed -n '12p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info + sed -n '10p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info # download file - sed -n '25p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info + sed -n '23p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info # sha256 - sed -n '24p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info + sed -n '22p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info # size - sed -n '26p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info + sed -n '24p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info done From c484a7a2097b23fef470493631430ee38e124114 Mon Sep 17 00:00:00 2001 From: GiriNeko Date: Tue, 5 Aug 2025 18:04:44 +0800 Subject: [PATCH 8/9] fix: upyun workflow dir --- .github/workflows/deploy2upyun.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy2upyun.yml b/.github/workflows/deploy2upyun.yml index 220629f..90c5811 100644 --- a/.github/workflows/deploy2upyun.yml +++ b/.github/workflows/deploy2upyun.yml @@ -24,5 +24,5 @@ jobs: bucket: ${{ secrets.UPYUN_BUCKET }} operator: ${{ secrets.UPYUN_OPERATOR_NAME }} password: ${{ secrets.UPYUN_OPERATOR_PWD }} - dir: './public' + dir: 'public' publish_dir: '/' From 2798464c4a61159445b3748e19c78655ac27b108 Mon Sep 17 00:00:00 2001 From: GiriNeko Date: Tue, 5 Aug 2025 18:09:14 +0800 Subject: [PATCH 9/9] feat: change api url to relative path --- src/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index 2dae02a..88b872a 100644 --- a/src/index.html +++ b/src/index.html @@ -307,9 +307,9 @@
API(XML 格式)

https://chrome.ntr.sb/api/chrome.xml(未压缩)
+ rel="noopener noreferrer">/api/chrome.xml(未压缩)
https://chrome.ntr.sb/api/chrome.min.xml(已压缩) + rel="noopener noreferrer">/api/chrome.min.xml(已压缩)

对于需要 Chrome 离线包数据,请使用本站开放的 API,完全没有必要 用 iframe 嵌套或反代本站,或者用爬虫解析本站 HTML 来获取数据。