2019-11-27 18:17:32 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# assumes cross-compile.sh has already been run successfully
|
2019-11-28 15:03:32 +00:00
|
|
|
uploadFile()
|
|
|
|
{
|
|
|
|
FILE=$1
|
2019-11-27 18:17:32 +00:00
|
|
|
BASENAME="$(basename "${FILE}")"
|
2020-02-06 19:39:08 +00:00
|
|
|
# abort if it takes more than two minutes to upload
|
|
|
|
uploadedTo=`curl -m 120 --upload-file $FILE "https://transfer.sh/$BASENAME"`
|
2019-11-28 15:03:32 +00:00
|
|
|
echo "$BASENAME uploaded to url: $uploadedTo"
|
2019-11-27 18:17:32 +00:00
|
|
|
}
|
|
|
|
|
2019-11-28 15:03:32 +00:00
|
|
|
uploadFile "dist/stash-osx"
|
|
|
|
uploadFile "dist/stash-win.exe"
|
2020-02-06 19:39:08 +00:00
|
|
|
uploadFile "dist/stash-linux"
|