Test aqtinstall for macosx.
This commit is contained in:
parent
c3e38be49b
commit
ca13b6033b
3 changed files with 17 additions and 9 deletions
|
@ -7,10 +7,6 @@ os:
|
|||
env:
|
||||
- USE_WEBENGINE=false
|
||||
- USE_WEBENGINE=true
|
||||
jobs:
|
||||
exclude:
|
||||
- os: osx
|
||||
env: USE_WEBENGINE=true
|
||||
compiler:
|
||||
- gcc
|
||||
notifications:
|
||||
|
|
|
@ -7,13 +7,13 @@ if test "$TRAVIS_OS_NAME" = "osx"; then
|
|||
brew update
|
||||
brew install p7zip
|
||||
brew link --force p7zip
|
||||
brew install qt5
|
||||
brew link --force qt5
|
||||
brew install curl
|
||||
brew link --force curl
|
||||
brew uninstall gnu-sed
|
||||
brew install gnu-sed
|
||||
brew link --force gnu-sed
|
||||
|
||||
pip install aqtinstall
|
||||
else
|
||||
# Linux.
|
||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||
|
|
|
@ -1,9 +1,22 @@
|
|||
#!/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.
|
||||
ls
|
||||
mkdir rssguard-build && cd rssguard-build
|
||||
lrelease -compress ../rssguard.pro
|
||||
qmake .. "USE_WEBENGINE=$USE_WEBENGINE"
|
||||
make
|
||||
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"
|
||||
|
||||
otool -L "RSS Guard.app/Contents/MacOS/rssguard"
|
||||
otool -L "rssguard"
|
||||
|
||||
make dmg
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue