This reduces build time but this change was primarily made to place the commands to its right place. This also did a small fix in the travis/linux_script.sh file to use paths defined in variables instead of using the hard-coded ones.
28 lines
680 B
Bash
Executable File
28 lines
680 B
Bash
Executable File
#!/bin/bash --
|
|
|
|
set -e
|
|
|
|
DIST_PATH=dist
|
|
|
|
if [[ "${DIST}" == "trusty" ]]; then
|
|
curl \
|
|
--upload-file \
|
|
"${DIST_PATH}"/flameshot_${ARCH}_${VERSION}.${EXTEN} \
|
|
"https://transfer.sh/flameshot_${ARCH}_${VERSION}.${EXTEN}"
|
|
else
|
|
case "${OS}" in
|
|
"ubuntu"|"debian")
|
|
curl \
|
|
--upload-file \
|
|
"${DIST_PATH}"/flameshot_${VERSION}-${DIST}-${ARCH}_${ARCH}.${EXTEN} \
|
|
"https://transfer.sh/flameshot_${VERSION}-${DIST}-${ARCH}_${ARCH}.${EXTEN}"
|
|
;;
|
|
"fedora")
|
|
curl \
|
|
--upload-file \
|
|
"${DIST_PATH}"/flameshot_${VERSION}-fedora${DIST}-${ARCH}_${ARCH}.${EXTEN} \
|
|
"https://transfer.sh/flameshot_${VERSION}-fedora${DIST}-${ARCH}_${ARCH}.${EXTEN}"
|
|
;;
|
|
esac
|
|
fi
|