Test aqtinstall for macosx.

This commit is contained in:
Martin Rotter 2020-11-26 09:31:37 +01:00
parent c3e38be49b
commit ca13b6033b
3 changed files with 17 additions and 9 deletions

View file

@ -7,10 +7,6 @@ os:
env: env:
- USE_WEBENGINE=false - USE_WEBENGINE=false
- USE_WEBENGINE=true - USE_WEBENGINE=true
jobs:
exclude:
- os: osx
env: USE_WEBENGINE=true
compiler: compiler:
- gcc - gcc
notifications: notifications:

View file

@ -7,13 +7,13 @@ if test "$TRAVIS_OS_NAME" = "osx"; then
brew update brew update
brew install p7zip brew install p7zip
brew link --force p7zip brew link --force p7zip
brew install qt5
brew link --force qt5
brew install curl brew install curl
brew link --force curl brew link --force curl
brew uninstall gnu-sed brew uninstall gnu-sed
brew install gnu-sed brew install gnu-sed
brew link --force gnu-sed brew link --force gnu-sed
pip install aqtinstall
else else
# Linux. # Linux.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y

View file

@ -1,9 +1,22 @@
#!/bin/sh #!/bin/sh
# Install Qt.
QTPATH="$(pwd)/Qt"
QTVERSION="5.15.2"
QTBIN="$QTPATH/$QTVERSION/clang_64/bin"
echo "Qt bin directory is: $QTBIN"
echo "Qt will be installed to: $QTPATH"
aqt install -O "$QTPATH" 5.15.2 mac desktop clang_64 -m qtwebengine
export QT_PLUGIN_PATH="$QTPATH/$QTVERSION/clang_64/plugins"
export PATH="$QTBIN:$PATH"
qmake --version
# Build application. # Build application.
ls
mkdir rssguard-build && cd rssguard-build mkdir rssguard-build && cd rssguard-build
lrelease -compress ../rssguard.pro
qmake .. "USE_WEBENGINE=$USE_WEBENGINE" qmake .. "USE_WEBENGINE=$USE_WEBENGINE"
make make
make install make install
@ -16,7 +29,6 @@ install_name_tool -change "librssguard.dylib" "@executable_path/librssguard.dyli
install_name_tool -change "librssguard.dylib" "@executable_path/librssguard.dylib" "rssguard" install_name_tool -change "librssguard.dylib" "@executable_path/librssguard.dylib" "rssguard"
otool -L "RSS Guard.app/Contents/MacOS/rssguard" otool -L "RSS Guard.app/Contents/MacOS/rssguard"
otool -L "rssguard"
make dmg make dmg