More proper appimages.

This commit is contained in:
Martin Rotter 2017-10-15 21:04:29 +02:00
parent 37db583b39
commit 8e78f60dfa
3 changed files with 13 additions and 8 deletions

View file

@ -6,8 +6,8 @@ os:
- linux - linux
- osx - osx
env: env:
- qmake_args='USE_WEBENGINE=false' - USE_WEBENGINE=false
- qmake_args='USE_WEBENGINE=true' - USE_WEBENGINE=true
compiler: compiler:
- gcc - gcc
branches: branches:

View file

@ -5,10 +5,9 @@ source /opt/qt59/bin/qt59-env.sh
mkdir rssguard-build && cd rssguard-build mkdir rssguard-build && cd rssguard-build
# Build application. # Build application.
qmake .. "$qmake_args" qmake .. "USE_WEBENGINE=$USE_WEBENGINE"
make lrelease
qmake .. "$qmake_args"
make make
qmake .. "USE_WEBENGINE=$USE_WEBENGINE"
make install make install
# Obtain linuxdeployqt. # Obtain linuxdeployqt.
@ -27,12 +26,18 @@ git clone https://martinrotter:${GH_TOKEN}@github.com/martinrotter/rssguard.wiki
set -- R*.AppImage set -- R*.AppImage
imagename="$1" imagename="$1"
imagenamenospace="${imagename// /-}-$(git rev-parse --short HEAD)"
if [ "$USE_WEBENGINE" = true ]; then
imagenamenospace="rssguard-$(git rev-parse --short HEAD)-linux.AppImage"
else
imagenamenospace="rssguard-$(git rev-parse --short HEAD)-nowebengine-linux.AppImage"
fi
echo "File to upload: $imagename" echo "File to upload: $imagename"
echo "URL ending: $imagenamenospace" echo "URL ending: $imagenamenospace"
curl --upload-file "./$imagename" "https://transfer.sh/$imagenamenospace" --silent >> ./build-wiki/Linux-development-builds.md curl --upload-file "./$imagename" "https://transfer.sh/$imagenamenospace" --silent >> ./build-wiki/Linux-development-builds.md
echo "\n" >> ./build-wiki/Linux-development-builds.md echo "" >> ./build-wiki/Linux-development-builds.md
cd ./build-wiki cd ./build-wiki
git commit -a -m "New files." git commit -a -m "New files."

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
mkdir rssguard-build && cd rssguard-build mkdir rssguard-build && cd rssguard-build
qmake .. "$qmake_args" qmake .. "USE_WEBENGINE=$USE_WEBENGINE"
make lrelease make lrelease
make make
make install make install