diff --git a/README.md b/README.md index 9aa1651..d118e50 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/upload_package_to_qiniu.sh b/upload_package_to_qiniu.sh new file mode 100644 index 0000000..4b58e3e --- /dev/null +++ b/upload_package_to_qiniu.sh @@ -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 + # 上传文件 qrsctl put bucket key srcFile + qrsctl put github "gocron/${i}" $i + if [[ ! $? ]];then + break + fi + rm $i +done + +echo '打包并上传成功' \ No newline at end of file