buildbot-scripts/buildbot-osx.sh
Peter Surda ee7a93c2fd
Docker and permissions
- add dockerfile for bionic builder
- chmod scripts sexecutable
- add docker-install-all.sh
2021-02-11 10:26:44 +01:00

40 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
#unset PYTHONPATH
#export CURL_CA_BUNDLE=/usr/local/share/ca-certificates/bitmessage-proxy.crt
#echo "--cacert /usr/local/share/ca-certificates/bitmessage-proxy.crt" > ~/.curlrc
#brew install https://storage.bitmessage.org/python@2--2.7.17_1.high_sierra.bottle.1.tar.gz
#cp /usr/local/share/ca-certificates/bitmessage-proxy.crt /usr/local/etc/openssl/certs/bitmessage-proxy.pem && /usr/local/opt/openssl@1.0/bin/c_rehash
#/usr/local/opt/python@2/bin/python -m pip config set global.cert /usr/local/share/ca-certificates/bitmessage-proxy.crt
/usr/local/opt/python@2/bin/python -m pip install py2app
#brew tap cartr/qt4
#brew install qt@4
#brew install pyqt@4
export LDFLAGS="-L/usr/local/opt/openssl@1.0/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.0/include"
#/usr/local/opt/python@2/bin/python -m pip install sip
export ARCHFLAGS="-arch i386 -arch x86_64"
#buildscripts/osx.sh test
#curl -O https://www.riverbankcomputing.com/static/Downloads/sip/4.19.24/sip-4.19.24.tar.gz
#hg clone https://www.riverbankcomputing.com/hg/sip
#cd sip
#hg archive -r 4.19.24 -t tgz ../sip-4.9.24.tar.gz
curl -O https://storage.bitmessage.org/sip-4.19.24.tar.gz
tar xzvf sip-4.19.24.tar.gz
cd sip-4.19.24
/usr/local/opt/python@2/bin/python configure.py
make && make install
cd ..
make -C src/bitmsghash
mv src/bitmsghash/a.out src/bitmsghash/bitmsghash.so
cd src && /usr/local/opt/python@2/bin/python build_osx.py py2app
if [ $? -ne 0 ] ; then
exit 1
fi
hdiutil create -fs HFS+ -volname "Bitmessage" -srcfolder dist/Bitmessage.app dist/bitmessage-test.dmg