From 9da2c78ec6d7d11446f775ebd78829d472dda288 Mon Sep 17 00:00:00 2001
From: Sukka
Date: Mon, 26 Aug 2019 23:00:12 +0800
Subject: [PATCH] chore: add new domain: chrome-dl.com
---
.travis.yml | 6 +++---
README.md | 6 +++---
src/index.html | 7 +++----
util/deployer.sh | 3 +++
4 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index af5701e..52521e8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,9 +4,9 @@ node_js:
sudo: enabled
dist: xenial
install:
- - curl -L https://noc.one/ubuntu | bash
- - sudo apt update
- - sudo apt -y install libxml2-utils
+ - sudo apt-get clean
+ - sudo apt-get update
+ - sudo apt-get -y install libxml2-utils
script:
- chmod +x ./run.sh
- ./run.sh
diff --git a/README.md b/README.md
index 8bd0420..f5b9589 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
## Demo
-https://lab.skk.moe/chrome
+https://chrome-dl.com
## API for CheckChrome
@@ -17,13 +17,13 @@ XML Format Output
### Not compressed (For development)
```
-GET https://lab.skk.moe/chrome/api/chrome.xml
+GET https://chrome-dl.com/api/chrome.xml
```
### Compressed (For production)
```
-GET https://lab.skk.moe/chrome/api/chrome.min.xml
+GET https://chrome-dl.com/api/chrome.min.xml
```
## Advanced - Google Updater (Omaha) API
diff --git a/src/index.html b/src/index.html
index 71e5fe3..106b577 100644
--- a/src/index.html
+++ b/src/index.html
@@ -16,10 +16,9 @@
-
+
-
@@ -253,8 +252,8 @@
API(XML 格式)
- https://lab.skk.moe/chrome/api/chrome.xml(未压缩)
- https://lab.skk.moe/chrome/api/chrome.min.xml(已压缩)
+ https://chrome-dl.com/api/chrome.xml(未压缩)
+ https://chrome-dl.com/api/chrome.min.xml(已压缩)
对于需要 Chrome 离线包数据,请使用本站开放的 API,完全没有必要 用 iframe 嵌套或反代本站,或者用爬虫解析本站 HTML 来获取数据。
diff --git a/util/deployer.sh b/util/deployer.sh
index a6133da..8e6b2da 100644
--- a/util/deployer.sh
+++ b/util/deployer.sh
@@ -5,6 +5,9 @@ echo '-------------------------------------'
mkdir ./_deploy
cd ./_deploy
+touch CNAME
+echo 'chrome-dl.com' > CNAME
+
git init
git config --global push.default matching
git config --global user.email "${GitHubEMail}"