2016-08-24 12:30:11 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-10-16 08:01:07 +02:00
|
|
|
# Build application.
|
2016-08-24 12:30:11 +02:00
|
|
|
mkdir rssguard-build && cd rssguard-build
|
2017-10-15 21:04:29 +02:00
|
|
|
qmake .. "USE_WEBENGINE=$USE_WEBENGINE"
|
2016-08-24 12:30:11 +02:00
|
|
|
make
|
2017-10-16 08:01:07 +02:00
|
|
|
qmake .. "USE_WEBENGINE=$USE_WEBENGINE"
|
2017-04-05 07:27:23 +02:00
|
|
|
make install
|
2017-10-09 11:11:17 +02:00
|
|
|
|
2017-10-16 08:01:07 +02:00
|
|
|
# Make DMG image.
|
2017-10-09 12:14:19 +02:00
|
|
|
make dmg
|
2017-06-27 06:30:22 +02:00
|
|
|
otool -L "RSS Guard.app/Contents/MacOS/rssguard"
|
2016-09-23 07:17:20 +02:00
|
|
|
|
2017-10-16 08:01:07 +02:00
|
|
|
set -- *.dmg
|
|
|
|
dmgname="$1"
|
|
|
|
|
|
|
|
if [ "$USE_WEBENGINE" = true ]; then
|
|
|
|
dmgnamenospace="rssguard-$(git rev-parse --short HEAD)-mac.AppImage"
|
|
|
|
else
|
|
|
|
dmgnamenospace="rssguard-$(git rev-parse --short HEAD)-nowebengine-mac.AppImage"
|
|
|
|
fi
|
2017-04-05 07:27:23 +02:00
|
|
|
|
2017-10-16 08:01:07 +02:00
|
|
|
echo "File to upload: $dmgname"
|
|
|
|
echo "URL ending: $dmgnamenospace"
|
2017-04-05 07:49:24 +02:00
|
|
|
|
2016-08-26 07:40:21 +02:00
|
|
|
git config --global user.email "rotter.martinos@gmail.com"
|
|
|
|
git config --global user.name "martinrotter"
|
2016-08-29 13:07:18 +02:00
|
|
|
git clone -q --depth=1 https://martinrotter:${GH_TOKEN}@github.com/martinrotter/rssguard.wiki.git ./build-wiki
|
2016-09-26 07:47:24 +02:00
|
|
|
|
2017-06-27 07:09:21 +02:00
|
|
|
curl --upload-file "./$dmgname" "https://transfer.sh/$dmgnamenospace" --silent >> ./build-wiki/Mac-OS-X-development-builds.md
|
2017-09-07 09:34:02 +02:00
|
|
|
echo "\n" >> ./build-wiki/Mac-OS-X-development-builds.md
|
2017-10-09 10:38:07 +02:00
|
|
|
|
2016-08-29 13:07:18 +02:00
|
|
|
cd ./build-wiki
|
|
|
|
git add *.*
|
2016-08-25 22:31:51 +02:00
|
|
|
git commit -m "New files."
|
2017-09-10 12:01:10 +02:00
|
|
|
git pull origin master
|
2016-08-29 13:07:18 +02:00
|
|
|
git push origin master
|