mirror of
https://github.com/GiriNeko/CheckChrome.git
synced 2025-12-16 05:07:23 +00:00
Compare commits
9 commits
1b4c2cfda7
...
2798464c4a
| Author | SHA1 | Date | |
|---|---|---|---|
| 2798464c4a | |||
| c484a7a209 | |||
| a5cb11457a | |||
| 2fe114d81c | |||
| 553818c8cd | |||
| 1ed7e4cef7 | |||
| 74cc152008 | |||
| 8266d7a3e5 | |||
| 2bbcd148a8 |
6 changed files with 54 additions and 36 deletions
|
|
@ -1,4 +1,4 @@
|
|||
name: Latest Build
|
||||
name: Latest Build to GitHub Pages
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 20 * * 2' # 每周二晚上8点触发
|
||||
28
.github/workflows/deploy2upyun.yml
vendored
Normal file
28
.github/workflows/deploy2upyun.yml
vendored
Normal file
|
|
@ -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: '/'
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@
|
|||
<!--[if lt IE 9]><script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3"></script><script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script><![endif]-->
|
||||
<meta property="og:title" content="Chrome 离线包">
|
||||
<meta property="og:type" content="Website">
|
||||
<meta property="og:url" content="https://ettingshausen.github.io/CheckChrome/">
|
||||
<meta property="og:url" content="https://chrome.ntr.sb">
|
||||
<meta property="og:description" content="又一个 Chrome 离线包下载">
|
||||
<meta name="twitter:card" content="summary">
|
||||
</head>
|
||||
|
|
@ -168,7 +168,7 @@
|
|||
<span>点击下载</span>
|
||||
</a>
|
||||
<a href="{{stable-x86-dl-alternative}}" class="btn btn-default sk-bg-gray">备选地址</a>
|
||||
<a href="{{stable-x86-dl-cache}}" class="btn btn-default">缓存服务器</a>
|
||||
<!-- <a href="{{stable-x86-dl-cache}}" class="btn btn-default">缓存服务器</a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -192,7 +192,7 @@
|
|||
<span>点击下载</span>
|
||||
</a>
|
||||
<a href="{{stable-x64-dl-alternative}}" class="btn btn-default sk-bg-gray">备选地址</a>
|
||||
<a href="{{stable-x64-dl-cache}}" class="btn btn-default">缓存服务器</a>
|
||||
<!-- <a href="{{stable-x64-dl-cache}}" class="btn btn-default">缓存服务器</a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -218,7 +218,7 @@
|
|||
<span>点击下载</span>
|
||||
</a>
|
||||
<a href="{{beta-x86-dl-alternative}}" class="btn btn-default sk-bg-gray">备选地址</a>
|
||||
<a href="{{beta-x86-dl-cache}}" class="btn btn-default">缓存服务器</a>
|
||||
<!-- <a href="{{beta-x86-dl-cache}}" class="btn btn-default">缓存服务器</a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -242,7 +242,7 @@
|
|||
<span>点击下载</span>
|
||||
</a>
|
||||
<a href="{{beta-x64-dl-alternative}}" class="btn btn-default sk-bg-gray">备选地址</a>
|
||||
<a href="{{beta-x64-dl-cache}}" class="btn btn-default">缓存服务器</a>
|
||||
<!-- <a href="{{beta-x64-dl-cache}}" class="btn btn-default">缓存服务器</a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -268,7 +268,7 @@
|
|||
<span>点击下载</span>
|
||||
</a>
|
||||
<a href="{{dev-x86-dl-alternative}}" class="btn btn-default sk-bg-gray">备选地址</a>
|
||||
<a href="{{dev-x86-dl-cache}}" class="btn btn-default">缓存服务器</a>
|
||||
<!-- <a href="{{dev-x86-dl-cache}}" class="btn btn-default">缓存服务器</a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -292,7 +292,7 @@
|
|||
<span>点击下载</span>
|
||||
</a>
|
||||
<a href="{{dev-x64-dl-alternative}}" class="btn btn-default sk-bg-gray">备选地址</a>
|
||||
<a href="{{dev-x64-dl-cache}}" class="btn btn-default">缓存服务器</a>
|
||||
<!-- <a href="{{dev-x64-dl-cache}}" class="btn btn-default">缓存服务器</a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -301,37 +301,21 @@
|
|||
<h4 class="sk-mb-4">注意</h4>
|
||||
<h5 class="sk-text-bold">项目开源地址</h5>
|
||||
<p>
|
||||
<a href="https://github.com/ettingshausen/CheckChrome" target="_blank"
|
||||
rel="noopener noreferrer">https://github.com/ettingshausen/CheckChrome</a>
|
||||
<a href="https://github.com/GiriNeko/CheckChrome" target="_blank"
|
||||
rel="noopener noreferrer">https://github.com/GiriNeko/CheckChrome</a>
|
||||
</p>
|
||||
<h5 class="sk-text-bold">API(XML 格式)</h5>
|
||||
<p>
|
||||
<a href="https://ettingshausen.github.io/CheckChrome/api/chrome.xml" target="_blank"
|
||||
rel="noopener noreferrer">https://ettingshausen.github.io/CheckChrome/api/chrome.xml</a>(未压缩)<br>
|
||||
<a href="https://ettingshausen.github.io/CheckChrome/api/chrome.min.xml" target="_blank"
|
||||
rel="noopener noreferrer">https://ettingshausen.github.io/CheckChrome/api/chrome.min.xml</a>(已压缩)
|
||||
<a href="https://chrome.ntr.sb/api/chrome.xml" target="_blank"
|
||||
rel="noopener noreferrer">/api/chrome.xml</a>(未压缩)<br>
|
||||
<a href="https://chrome.ntr.sb/api/chrome.min.xml" target="_blank"
|
||||
rel="noopener noreferrer">/api/chrome.min.xml</a>(已压缩)
|
||||
</p>
|
||||
<blockquote class="sk-mb-0">对于需要 Chrome 离线包数据,请使用本站开放的 API,<b>完全没有必要</b> 用 iframe 嵌套或反代本站,或者用爬虫解析本站 HTML
|
||||
来获取数据。
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/cfga@1.0.1" async></script>
|
||||
<script>
|
||||
(function () {
|
||||
function perfops() {
|
||||
var js = document.createElement('script');
|
||||
js.src = 'https://cdn.jsdelivr.net/npm/perfops-rom';
|
||||
document.body.appendChild(js);
|
||||
}
|
||||
|
||||
if (document.readyState === 'complete') {
|
||||
perfops();
|
||||
} else {
|
||||
window.addEventListener('load', perfops);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -20,10 +20,16 @@ do
|
|||
sed -i 's|https://||g' ./tmp/parse/${i}.info
|
||||
sed -i 's| ||g' ./tmp/parse/${i}.info
|
||||
|
||||
# version
|
||||
sed -n '14p' ./tmp/parse/${i}.info > ./tmp/parse/${i}-result.info
|
||||
# download base
|
||||
sed -n '8p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info
|
||||
# download alternative base
|
||||
sed -n '10p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info
|
||||
# download file
|
||||
sed -n '23p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info
|
||||
# sha256
|
||||
sed -n '22p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info
|
||||
# size
|
||||
sed -n '24p' ./tmp/parse/${i}.info >> ./tmp/parse/${i}-result.info
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue