From febe20b96c9c9393bc3765017087194fc5a72c09 Mon Sep 17 00:00:00 2001 From: NamedKitten Date: Thu, 18 Oct 2018 08:15:04 +0100 Subject: [PATCH] Make release text better. --- .travis.yml | 5 +---- scripts/build-mpv.sh | 1 - scripts/upload.sh | 10 ++++++++++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100755 scripts/upload.sh diff --git a/.travis.yml b/.travis.yml index c4ed983..b6bc53c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,10 +25,7 @@ script: - bash scripts/makeappimage.sh after_success: - - find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq - - curl --upload-file KittehPlayer*.AppImage https://transfer.sh/KittehPlayer-git.$(git rev-parse --short HEAD)-x86_64.AppImage - - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh - - bash upload.sh KittehPlayer*.AppImage* + - bash scripts/upload.sh branches: except: diff --git a/scripts/build-mpv.sh b/scripts/build-mpv.sh index 760e1a8..eda18ef 100755 --- a/scripts/build-mpv.sh +++ b/scripts/build-mpv.sh @@ -36,6 +36,5 @@ echo "--disable-caca --disable-wayland --disable-gl-wayland --disable-libarchive ./rebuild -j`nproc` 2>&1 > build.log sudo ./install ccache -s -curl --upload-file build.log https://transfer.sh/KittehPlayer-build.log cd $OLDDIR diff --git a/scripts/upload.sh b/scripts/upload.sh new file mode 100755 index 0000000..9a873cd --- /dev/null +++ b/scripts/upload.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -e + +export TEXT=`git log -1 --pretty=%B` +export UPLOADTOOL_BODY="$TEXT\nTravis CI build log: https://travis-ci.com/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID/" + +curl --upload-file KittehPlayer*.AppImage https://transfer.sh/KittehPlayer-git.$(git rev-parse --short HEAD)-x86_64.AppImage +wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh +bash upload.sh KittehPlayer*.AppImage* +echo "Done!" \ No newline at end of file