mirror of
https://github.com/GiriNeko/CheckChrome.git
synced 2025-12-16 13:17:15 +00:00
refactor/fix: some minor changes
This commit is contained in:
parent
933bfdaa6b
commit
c9b66c9394
3 changed files with 20 additions and 16 deletions
21
run.sh
21
run.sh
|
|
@ -1,11 +1,30 @@
|
|||
mkdir ./public -p
|
||||
mkdir ./public/api -p
|
||||
mkdir ./tmp/checker -p
|
||||
mkdir ./tmp/parse -p
|
||||
mkdir ./tmp/api/
|
||||
|
||||
chmod +x ./util/checker.sh
|
||||
chmod +x ./util/xmlparser.sh
|
||||
chmod +x ./util/parse.sh
|
||||
chmod +x ./util/generator.sh
|
||||
chmod +x ./util/deployer.sh
|
||||
|
||||
./util/checker.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
|
||||
|
||||
DATE="$(echo $(TZ=UTC-8 date '+%Y-%m-%d %H:%M:%S'))"
|
||||
sed -i "s|{{CheckTime}}|$DATE|g" tmp/index.html
|
||||
sed -i "s|{{CheckTime}}|$DATE|g" tmp/chrome.xml
|
||||
|
||||
./util/generator.sh stable-x86 stable-x64 beta-x86 beta-x64 dev-x86 dev-x64 canary-x86 canary-x64
|
||||
|
||||
xmllint --format tmp/chrome.xml > tmp/api/chrome.xml
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue