fix/ci: update travis.yml

This commit is contained in:
SukkaW 2018-08-20 10:37:09 +08:00
parent 53179cde57
commit 854748b899
2 changed files with 5 additions and 11 deletions

4
run.sh
View file

@ -14,7 +14,7 @@ chmod +x ./util/deployer.sh
./util/parse.sh stable-x86 stable-x64 beta-x86 beta-x64 dev-x86 dev-x64 canary-x86 canary-x64
cp -rf src/index.html tmp/index.html
cp -rf src/chrome.tpl tmp/chrome.xml
cp -rf src/chrome.xml tmp/chrome.xml
DATE="$(echo $(TZ=UTC-8 date '+%Y-%m-%d %H:%M:%S'))"
sed -i "s|{{CheckTime}}|$DATE|g" tmp/index.html
@ -28,3 +28,5 @@ xmllint --noblanks tmp/chrome.xml > tmp/api/chrome.min.xml
cp -rf tmp/index.html public/index.html
cp -rf tmp/api/chrome.xml public/api/chrome.xml
cp -rf tmp/api/chrome.min.xml public/api/chrome.min.xml
./util/deployer.sh