mirror of https://github.com/ouqiang/gocron
二进制包改由七牛存储
parent
85996077ec
commit
6f76d3b17e
|
@ -30,7 +30,7 @@
|
|||
## 安装
|
||||
|
||||
### 二进制安装
|
||||
1. [下载](https://pan.baidu.com/s/1pLNRndx#list/path=%2Fgocron), 解压压缩包
|
||||
1. [下载](http://opns468ov.bkt.clouddn.com/index.html), 解压压缩包
|
||||
2. `cd 解压目录`
|
||||
3. 启动
|
||||
* Windows: `gocron.exe web`
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env bash
|
||||
# set -x -u
|
||||
# 上传二进制包到七牛
|
||||
|
||||
# 打包
|
||||
for i in linux darwin windows
|
||||
do
|
||||
./build.sh -p $i
|
||||
if [[ ! $? ]];then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# 上传
|
||||
for i in `ls gocron*.gz gocron*.zip`
|
||||
do
|
||||
# 身份认证 qrsctl login <AccessKey> <SecretKey>
|
||||
# 上传文件 qrsctl put bucket key srcFile
|
||||
qrsctl put github "gocron/${i}" $i
|
||||
if [[ ! $? ]];then
|
||||
break
|
||||
fi
|
||||
rm $i
|
||||
done
|
||||
|
||||
echo '打包并上传成功'
|
Loading…
Reference in New Issue