3 Star 0 Fork 0

Gitee 极速下载/Configurator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/progrium/configurator
克隆/下载
release.sh 692 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -eo pipefail
readonly NAME="configurator"
readonly VERSION="$(cat release/version)"
readonly RELEASES_ENDPOINT="https://api.github.com/repos/progrium/$NAME/releases"
readonly ASSETS_ENDPOINT="https://uploads.github.com/repos/progrium/$NAME/releases/%s/assets"
main() {
local upload_url=$(curl -s --fail -d "{\"tag_name\": \"v$VERSION\"}" "$RELEASES_ENDPOINT?access_token=$GITHUB_ACCESS_TOKEN" | jq -r .upload_url | sed "s/[\{\}]//g")
for file in release/*.tgz; do
local name="$(basename $file)"
echo "$name"
curl --fail -X POST -H "Content-Type: application/gzip" --data-binary "@$file" "$upload_url=$name&access_token=$GITHUB_ACCESS_TOKEN" > /dev/null
done
}
main
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/Configurator.git
git@gitee.com:mirrors/Configurator.git
mirrors
Configurator
Configurator
master

搜索帮助