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}")"
|
2019-11-28 15:03:32 +00:00
|
|
|
uploadedTo=`curl --upload-file $FILE "https://transfer.sh/$BASENAME"`
|
|
|
|
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"
|
|
|
|
uploadFile "dist/stash-linux"
|