add "Latest daily build" download link
This commit is contained in:
parent
4ed4de9e71
commit
942867aebb
|
@ -32,6 +32,8 @@ A Better Frontend for [aria2](https://github.com/aria2/aria2) (a cross-platform
|
||||||
#### Prebuilt release
|
#### Prebuilt release
|
||||||
Latest Release: https://github.com/mayswind/AriaNg/releases
|
Latest Release: https://github.com/mayswind/AriaNg/releases
|
||||||
|
|
||||||
|
Latest Daily Build: https://raw.githubusercontent.com/mayswind/AriaNg/gh-pages/downloads/latest_daily_build.zip
|
||||||
|
|
||||||
#### Building from source
|
#### Building from source
|
||||||
Make sure you have [Node.js](https://nodejs.org/), [NPM](https://www.npmjs.com/) and [Bower](https://bower.io/) installed. Then download the source code, and follow these steps.
|
Make sure you have [Node.js](https://nodejs.org/), [NPM](https://www.npmjs.com/) and [Bower](https://bower.io/) installed. Then download the source code, and follow these steps.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
if [ $CI == "true" ] && [ $CIRCLE_BRANCH == "master" ]; then
|
if [ $CI == "true" ] && [ $CIRCLE_BRANCH == "master" ]; then
|
||||||
|
echo "Packaging daily build...";
|
||||||
|
cd dist;
|
||||||
|
zip $CIRCLE_ARTIFACTS/dist.zip * -r -9;
|
||||||
|
cd ..;
|
||||||
|
|
||||||
|
echo "Publishing online demo...";
|
||||||
cp dist $CIRCLE_ARTIFACTS/ -r;
|
cp dist $CIRCLE_ARTIFACTS/ -r;
|
||||||
cp README.md $CIRCLE_ARTIFACTS/;
|
cp README.md $CIRCLE_ARTIFACTS/;
|
||||||
cp LICENSE $CIRCLE_ARTIFACTS/;
|
cp LICENSE $CIRCLE_ARTIFACTS/;
|
||||||
|
@ -12,24 +18,20 @@ if [ $CI == "true" ] && [ $CIRCLE_BRANCH == "master" ]; then
|
||||||
rm -rf js;
|
rm -rf js;
|
||||||
rm -rf langs;
|
rm -rf langs;
|
||||||
rm -rf imgs;
|
rm -rf imgs;
|
||||||
|
rm -f downloads/latest_daily_build.zip;
|
||||||
rm -f index.html;
|
rm -f index.html;
|
||||||
rm -f index.manifest;
|
rm -f index.manifest;
|
||||||
rm -f README.md;
|
rm -f README.md;
|
||||||
rm -f LICENSE;
|
rm -f LICENSE;
|
||||||
|
|
||||||
cp $CIRCLE_ARTIFACTS/dist/* ./ -r;
|
cp $CIRCLE_ARTIFACTS/dist/* ./ -r;
|
||||||
cp $CIRCLE_ARTIFACTS/README.md ./;
|
mv $CIRCLE_ARTIFACTS/dist.zip ./downloads/latest_daily_build.zip;
|
||||||
cp $CIRCLE_ARTIFACTS/LICENSE ./;
|
mv $CIRCLE_ARTIFACTS/README.md ./;
|
||||||
|
mv $CIRCLE_ARTIFACTS/LICENSE ./;
|
||||||
|
|
||||||
git add -A;
|
git add -A;
|
||||||
git commit -a -m "daily build #$CIRCLE_SHA1";
|
git commit -a -m "daily build #$CIRCLE_SHA1";
|
||||||
git push origin gh-pages;
|
git push origin gh-pages;
|
||||||
|
|
||||||
cd $CIRCLE_ARTIFACTS/dist/;
|
echo "Done. ";
|
||||||
zip $CIRCLE_ARTIFACTS/dist.zip * -r -9;
|
|
||||||
cd ..;
|
|
||||||
|
|
||||||
rm -rf $CIRCLE_ARTIFACTS/dist;
|
|
||||||
rm -f $CIRCLE_ARTIFACTS/README.md;
|
|
||||||
rm -f $CIRCLE_ARTIFACTS/LICENSE;
|
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue