fceux/pipelines/macOS_build.sh

51 lines
1.2 KiB
Bash
Raw Normal View History

2020-07-01 00:20:50 +00:00
#!/bin/bash
echo ' MacOS Build !!! '
id
pwd
uname -a
sw_vers
SCRIPT_DIR=$( cd $(dirname $BASH_SOURCE[0]); pwd );
gcc --version
echo '****************************************'
echo "APPVEYOR_SSH_KEY=$APPVEYOR_SSH_KEY";
echo "APPVEYOR_SSH_BLOCK=$APPVEYOR_SSH_BLOCK";
echo '****************************************'
echo '****************************************'
echo 'Install Dependency sdl2'
echo '****************************************'
2020-07-01 00:20:50 +00:00
brew install sdl2
echo '****************************************'
echo 'Install Dependency Qt5'
echo '****************************************'
2020-07-01 00:20:50 +00:00
brew install qt5
echo '****************************************'
echo 'Install Dependency minizip'
echo '****************************************'
2020-07-01 00:42:16 +00:00
brew install minizip
2020-07-01 01:28:18 +00:00
#brew install zlib # Already installed in appveyor macOS
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:
QMAKE=`find /usr/local -name qmake`;
2020-07-01 00:42:16 +00:00
echo '**************************'
echo '*** Building Project ***'
echo '**************************'
2020-07-01 00:42:16 +00:00
mkdir build;
cd build;
2020-07-01 01:28:18 +00:00
$QMAKE ..
2020-07-01 00:42:16 +00:00
make
2020-07-01 00:20:50 +00:00
# Debug via ssh if necessary
if [ ! -z $APPVEYOR_SSH_BLOCK ]; then
curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
fi