From a0d5135820cf54a1290864e20191ba242fe415b2 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 7 Nov 2017 09:42:59 +0100 Subject: [PATCH] lf --- resources/scripts/.travis-install-osx.sh | 44 +++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/resources/scripts/.travis-install-osx.sh b/resources/scripts/.travis-install-osx.sh index a3b60bb67..413f4e0c5 100755 --- a/resources/scripts/.travis-install-osx.sh +++ b/resources/scripts/.travis-install-osx.sh @@ -1 +1,43 @@ -#!/bin/sh # Build application. ls mkdir rssguard-build && cd rssguard-build lrelease -compress ../rssguard.pro qmake .. "USE_WEBENGINE=$USE_WEBENGINE" make make install # Make DMG image. make dmg otool -L "RSS Guard.app/Contents/MacOS/rssguard" set -- *.dmg dmgname="$1" git_revision=$(git rev-parse --short HEAD) if [ "$USE_WEBENGINE" = true ]; then dmgnamenospace="rssguard-${git_revision}-mac64.dmg" else dmgnamenospace="rssguard-${git_revision}-nowebengine-mac64.dmg" fi mv "$dmgname" "$dmgnamenospace" dmgname="$dmgnamenospace" echo "File to upload: $dmgname" echo "URL ending: $dmgnamenospace" git config --global user.email "rotter.martinos@gmail.com" git config --global user.name "martinrotter" git clone -q --depth=1 https://martinrotter:${GH_TOKEN}@github.com/martinrotter/rssguard.wiki.git ./build-wiki url=$(curl --upload-file "./$dmgname" "https://transfer.sh/$dmgnamenospace" --silent) echo "| $(date +'%m-%d-%Y %T') | [$git_revision](https://github.com/martinrotter/rssguard/commit/$git_revision) | [transfer.sh]($url) | $(echo "$USE_WEBENGINE") | "$'\r' >> ./build-wiki/Mac-OS-X-development-builds.md cd ./build-wiki git add *.* git commit -m "New files." git pull origin master git push origin master \ No newline at end of file +#!/bin/sh + +# Build application. +ls +mkdir rssguard-build && cd rssguard-build +lrelease -compress ../rssguard.pro +qmake .. "USE_WEBENGINE=$USE_WEBENGINE" +make +make install + +# Make DMG image. +make dmg +otool -L "RSS Guard.app/Contents/MacOS/rssguard" + +set -- *.dmg +dmgname="$1" +git_revision=$(git rev-parse --short HEAD) + +if [ "$USE_WEBENGINE" = true ]; then + dmgnamenospace="rssguard-${git_revision}-mac64.dmg" +else + dmgnamenospace="rssguard-${git_revision}-nowebengine-mac64.dmg" +fi + +mv "$dmgname" "$dmgnamenospace" +dmgname="$dmgnamenospace" + +echo "File to upload: $dmgname" +echo "URL ending: $dmgnamenospace" + +git config --global user.email "rotter.martinos@gmail.com" +git config --global user.name "martinrotter" +git clone -q --depth=1 https://martinrotter:${GH_TOKEN}@github.com/martinrotter/rssguard.wiki.git ./build-wiki + +url=$(curl --upload-file "./$dmgname" "https://transfer.sh/$dmgnamenospace" --silent) + +echo "| $(date +'%m-%d-%Y %T') | [$git_revision](https://github.com/martinrotter/rssguard/commit/$git_revision) | [transfer.sh]($url) | $(echo "$USE_WEBENGINE") | "$'\r' >> ./build-wiki/Mac-OS-X-development-builds.md + +cd ./build-wiki +git add *.* +git commit -m "New files." +git pull origin master +git push origin master \ No newline at end of file