2017-11-07 09:42:59 +01:00
|
|
|
#!/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.
|
2020-04-30 12:32:20 +02:00
|
|
|
cd "src/rssguard"
|
2020-05-12 12:39:49 +02:00
|
|
|
|
|
|
|
# Fix .dylib linking.
|
|
|
|
install_name_tool -change "librssguard.dylib" "@executable_path/librssguard.dylib" "RSS Guard.app/Contents/MacOS/rssguard"
|
2020-05-12 13:18:18 +02:00
|
|
|
install_name_tool -change "librssguard.dylib" "@executable_path/librssguard.dylib" "rssguard"
|
|
|
|
|
2020-05-03 19:55:04 +02:00
|
|
|
otool -L "RSS Guard.app/Contents/MacOS/rssguard"
|
2020-05-12 13:18:18 +02:00
|
|
|
otool -L "rssguard"
|
|
|
|
|
2020-05-12 12:39:49 +02:00
|
|
|
make dmg
|
2020-05-04 06:47:42 +02:00
|
|
|
|
|
|
|
# Rename DMG.
|
|
|
|
set -- *.dmg
|
|
|
|
|
|
|
|
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
|
|
|
|
|
|
|
|
dmgname="$1"
|
2020-05-04 07:30:31 +02:00
|
|
|
git_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
|
2020-05-04 06:47:42 +02:00
|
|
|
git_revision=$(git rev-parse --short HEAD)
|
|
|
|
|
|
|
|
if [ "$USE_WEBENGINE" = true ]; then
|
|
|
|
dmgnewname="rssguard-${git_tag}-${git_revision}-mac64.dmg"
|
|
|
|
else
|
|
|
|
dmgnewname="rssguard-${git_tag}-${git_revision}-nowebengine-mac64.dmg"
|
|
|
|
fi
|
|
|
|
|
|
|
|
mv "$dmgname" "$dmgnewname"
|
|
|
|
|
|
|
|
ls
|