mirror of https://github.com/ouqiang/gocron
parent
28eda835c0
commit
8779b3ad8b
6
build.sh
6
build.sh
|
@ -53,8 +53,8 @@ if [[ $ARCH != '386' && $ARCH != 'amd64' ]];then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo '开始编译'
|
echo '开始编译'
|
||||||
GOOS=$OS GOARCH=$ARCH go build
|
GOOS=$OS GOARCH=$ARCH go build -ldflags '-w'
|
||||||
if [[ ! $? ]];then
|
if [[ $? != 0 ]];then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo '编译完成'
|
echo '编译完成'
|
||||||
|
@ -68,7 +68,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p $TEMP_DIR/$APP_NAME
|
mkdir -p $TEMP_DIR/$APP_NAME
|
||||||
if [[ ! $? ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ fi
|
||||||
for i in linux darwin windows
|
for i in linux darwin windows
|
||||||
do
|
do
|
||||||
./build.sh -p $i
|
./build.sh -p $i
|
||||||
if [[ ! $? ]];then
|
if [[ $? != 0 ]];then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -25,7 +25,7 @@ do
|
||||||
# 上传文件 qrsctl put bucket key srcFile
|
# 上传文件 qrsctl put bucket key srcFile
|
||||||
KEY=gocron/$i
|
KEY=gocron/$i
|
||||||
qrsctl put github $KEY $i
|
qrsctl put github $KEY $i
|
||||||
if [[ ! $? ]];then
|
if [[ $? != 0 ]];then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
echo "刷新七牛CDN-" $QINIU_URL/$KEY
|
echo "刷新七牛CDN-" $QINIU_URL/$KEY
|
||||||
|
|
Loading…
Reference in New Issue