Add Travis script for Mac builds
This commit is contained in:
parent
757da1624c
commit
6261be1dc8
11
.travis.yml
Normal file
11
.travis.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
language: cpp
|
||||||
|
os: osx
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- brew update
|
||||||
|
- brew install qt5
|
||||||
|
|
||||||
|
script:
|
||||||
|
# XXX: please chmod +x the shell script.
|
||||||
|
- sh ./scripts/macos_build.sh
|
||||||
|
- ./scripts/macos_post_build.sh
|
30
scripts/macos_build.sh
Normal file
30
scripts/macos_build.sh
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -Eeuxo pipefail
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
|
||||||
|
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/openssl/lib/pkgconfig
|
||||||
|
export PATH=$PATH:/usr/local/opt/qt5/bin:/usr/local/bin
|
||||||
|
|
||||||
|
mkdir bass
|
||||||
|
cd bass
|
||||||
|
curl http://www.un4seen.com/files/bass24-osx.zip -o bass.zip
|
||||||
|
unzip bass.zip
|
||||||
|
cp libbass.dylib ../lib
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
mkdir discord-rpc
|
||||||
|
cd discord-rpc
|
||||||
|
curl -L https://github.com/discordapp/discord-rpc/releases/download/v3.4.0/discord-rpc-osx.zip
|
||||||
|
unzip discord_rpc_osx.zip
|
||||||
|
cp discord-rpc/osx-dynamic/lib/libdiscord-rpc.a ../lib
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
mkdir qtapng
|
||||||
|
cd qtapng
|
||||||
|
curl -L https://github.com/Skycoder42/QtApng/releases/download/1.1.0-5/build_clang_64_5.12.0.tar.xz -o apng.tar.xz
|
||||||
|
tar -xvf apng.tar.xz
|
||||||
|
cp clang_64/plugins/imageformats/libqapng.dylib ../lib
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
qmake && make -j2
|
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
DST_FOLDER="./bin/Attorney_Online.app/Contents/Frameworks"
|
DST_FOLDER="./bin/Attorney_Online.app/Contents/Frameworks"
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
mkdir $DST_FOLDER
|
mkdir $DST_FOLDER
|
||||||
|
|
||||||
cp ./lib/libbass.dylib $DST_FOLDER
|
cp ./lib/libbass.dylib $DST_FOLDER
|
||||||
|
Loading…
Reference in New Issue
Block a user