New "make dmg" target for Mac OS X.
This commit is contained in:
parent
515796b3a4
commit
3141a8400d
2 changed files with 16 additions and 4 deletions
|
@ -3,9 +3,7 @@
|
||||||
mkdir rssguard-build && cd rssguard-build
|
mkdir rssguard-build && cd rssguard-build
|
||||||
qmake ..
|
qmake ..
|
||||||
make
|
make
|
||||||
make install
|
make dmg
|
||||||
macdeployqt rssguard.app -dmg
|
|
||||||
mv rssguard.dmg rssguard-osx.dmg
|
|
||||||
|
|
||||||
ls -lha
|
ls -lha
|
||||||
|
|
||||||
|
@ -14,7 +12,10 @@ otool -L rssguard.app/Contents/MacOS/rssguard
|
||||||
git config --global user.email "rotter.martinos@gmail.com"
|
git config --global user.email "rotter.martinos@gmail.com"
|
||||||
git config --global user.name "martinrotter"
|
git config --global user.name "martinrotter"
|
||||||
git clone -q --depth=1 https://martinrotter:${GH_TOKEN}@github.com/martinrotter/rssguard.wiki.git ./build-wiki
|
git clone -q --depth=1 https://martinrotter:${GH_TOKEN}@github.com/martinrotter/rssguard.wiki.git ./build-wiki
|
||||||
curl --upload-file ./rssguard-osx.dmg https://transfer.sh/rssguard-osx.dmg --silent >> ./build-wiki/Mac-OS-X-development-builds.md
|
|
||||||
|
dmgname=*-osx.dmg
|
||||||
|
|
||||||
|
curl --upload-file ./$dmgname https://transfer.sh/$dmgname --silent >> ./build-wiki/Mac-OS-X-development-builds.md
|
||||||
echo >> ./build-wiki/Mac-OS-X-development-builds.md
|
echo >> ./build-wiki/Mac-OS-X-development-builds.md
|
||||||
cat ./build-wiki/Mac-OS-X-development-builds.md
|
cat ./build-wiki/Mac-OS-X-development-builds.md
|
||||||
|
|
||||||
|
|
11
rssguard.pro
11
rssguard.pro
|
@ -596,6 +596,17 @@ win32 {
|
||||||
QMAKE_EXTRA_TARGETS += windows_all
|
QMAKE_EXTRA_TARGETS += windows_all
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Create "make dmg" target on Mac OS X.
|
||||||
|
mac {
|
||||||
|
dmg.target = dmg
|
||||||
|
dmg.depends = install
|
||||||
|
dmg.commands = \
|
||||||
|
macdeployqt rssguard.app -dmg && \
|
||||||
|
mv rssguard.dmg $$TARGET-$$APP_VERSION-$$APP_REVISION-osx.dmg
|
||||||
|
|
||||||
|
QMAKE_EXTRA_TARGETS += dmg
|
||||||
|
}
|
||||||
|
|
||||||
# Install all files on Windows.
|
# Install all files on Windows.
|
||||||
win32 {
|
win32 {
|
||||||
target.path = $$PREFIX
|
target.path = $$PREFIX
|
||||||
|
|
Loading…
Add table
Reference in a new issue