Skip to content

Commit

Permalink
perf: autoupdate sleep time update
Browse files Browse the repository at this point in the history
  • Loading branch information
liujiaxun authored and zyyw committed Jun 25, 2019
1 parent fc8afb4 commit e3fe308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ do
md5=`md5 ./cmd/btfs/btfs | awk '{print $4}'`
mv ./cmd/btfs/btfs ../btfs-binary-releases/${goos}/${goarch}/btfs-${goos}-${goarch}${ext}
mv update-${goos}-${goarch}${ext} ../btfs-binary-releases/${goos}/${goarch}/update-${goos}-${goarch}${ext}
echo -e "version: ${version: 1: ${#version}-2}\nmd5: ${md5}\nautoupdateFlg: true\nsleepTimeSeconds: 30\nbeginNumber: 0\nendNumber: 100" > ../btfs-binary-releases/${goos}/${goarch}/config_${goos}_${goarch}.yaml
echo -e "version: ${version: 1: ${#version}-2}\nmd5: ${md5}\nautoupdateFlg: true\nsleepTimeSeconds: 86400\nbeginNumber: 0\nendNumber: 100" > ../btfs-binary-releases/${goos}/${goarch}/config_${goos}_${goarch}.yaml
cd ../btfs-binary-releases/${goos}/${goarch}
tar -cvf btfs-${goos}-${goarch}.tar config_${goos}_${goarch}.yaml btfs-${goos}-${goarch}${ext}
cd -
Expand Down

0 comments on commit e3fe308

Please sign in to comment.