forked from geeeeeeeeek/electronic-wechat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request geeeeeeeeek#225 from ripples-alive/feature/qiniu-d…
…ownload update for Chinese qiniu download server
- Loading branch information
Showing
3 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
#!/bin/bash | ||
|
||
wget http://devtools.qiniu.com/qiniu-devtools-linux_amd64-current.tar.gz -P /home/travis/build/geeeeeeeeek/electronic-wechat | ||
tar -xvf /home/travis/build/geeeeeeeeek/electronic-wechat/qiniu-devtools-linux_amd64-current.tar.gz -C /home/travis/build/geeeeeeeeek/electronic-wechat | ||
mkdir /home/travis/build/geeeeeeeeek/electronic-wechat/output | ||
cp /home/travis/build/geeeeeeeeek/electronic-wechat/dist/mac-osx.tar.gz /home/travis/build/geeeeeeeeek/electronic-wechat/output | ||
cp /home/travis/build/geeeeeeeeek/electronic-wechat/dist/linux-x64.tar.gz /home/travis/build/geeeeeeeeek/electronic-wechat/output | ||
cp /home/travis/build/geeeeeeeeek/electronic-wechat/dist/linux-ia32.tar.gz /home/travis/build/geeeeeeeeek/electronic-wechat/output | ||
./qrsync conf.json | ||
case "$(uname -s)" in | ||
|
||
Linux*) | ||
wget http://devtools.qiniu.com/qiniu-devtools-linux_amd64-current.tar.gz -O dist/qiniu-devtools.tar.gz | ||
;; | ||
|
||
Darwin) | ||
wget http://devtools.qiniu.io/qiniu-devtools-darwin_amd64-current.tar.gz -O dist/qiniu-devtools.tar.gz | ||
;; | ||
|
||
*) | ||
;; | ||
|
||
esac | ||
|
||
mkdir dist/qiniu-devtools | ||
tar -xvf dist/qiniu-devtools.tar.gz -C dist/qiniu-devtools | ||
rm -rf /tmp/qiniu | ||
mkdir /tmp/qiniu | ||
cp dist/mac-osx.tar.gz /tmp/qiniu | ||
cp dist/linux-x64.tar.gz /tmp/qiniu | ||
cp dist/linux-ia32.tar.gz /tmp/qiniu | ||
|
||
echo '{ | ||
"src": "/tmp/qiniu", | ||
"dest": "qiniu:access_key='$QINIU_ACCESS_KEY'&secret_key='$QINIU_SECRET_KEY'&bucket=flymeos-cancro", | ||
"debug_level": 1 | ||
}' > qiniu-config.json | ||
./dist/qiniu-devtools/qrsync qiniu-config.json |