mirror of
https://github.com/GiriNeko/CheckChrome.git
synced 2025-12-14 12:17:22 +00:00
31 lines
868 B
Bash
31 lines
868 B
Bash
mkdir -p ./public/api
|
|
mkdir -p ./tmp/checker
|
|
mkdir -p ./tmp/parse
|
|
mkdir ./tmp/api/
|
|
|
|
chmod +x ./util/checker.sh
|
|
chmod +x ./util/xmlparser.sh
|
|
chmod +x ./util/parse.sh
|
|
chmod +x ./util/generator.sh
|
|
|
|
./util/checker.sh
|
|
|
|
./util/parse.sh stable-x86 stable-x64 beta-x86 beta-x64 dev-x86 dev-x64
|
|
|
|
cp -rf src/index.html tmp/index.html
|
|
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
|
|
sed -i "s|{{CheckTime}}|$DATE|g" tmp/chrome.xml
|
|
|
|
./util/generator.sh stable-x86 stable-x64 beta-x86 beta-x64 dev-x86 dev-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
|
|
|
|
#./util/deployer.sh
|