mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 01:21:57 -05:00
85d0a980ec
Also update buildbot scripts
13 lines
302 B
Bash
13 lines
302 B
Bash
# upload_build.sh [TARGET NAME] [SOURCE FILE]
|
|
# e.g. ~/upload_build.sh latest/ClassiCube.ipa cc.ipa
|
|
API_URL=
|
|
API_KEY=
|
|
|
|
if [ -s $2 ]; then
|
|
curl $API_URL \
|
|
--header "X-Build-Key:$API_KEY" \
|
|
--header "X-Build-Name:$1" \
|
|
--data-binary @$2
|
|
else
|
|
echo "Missing or empty file: $2"
|
|
fi
|