MacOS support
This commit is contained in:
parent
29c10ce27b
commit
2b7a34f84d
@ -79,7 +79,7 @@ cd ..
|
||||
|
||||
echo "Patching TdApi.java..."
|
||||
cd ../tdlib-serializer/
|
||||
pip3 install -r requirements.txt
|
||||
pip3 install -r requirements.txt --user
|
||||
cd ../generated/
|
||||
python3 ../tdlib-serializer/ $(realpath -m ./src/main/jni-java-src/it/tdlight/jni/TdApi.java) $(realpath -m ./src/main/jni-java-src/it/tdlight/jni/new_TdApi.java) $(realpath -m ../tdlib-serializer/headers.txt)
|
||||
rm ./src/main/jni-java-src/it/tdlight/jni/TdApi.java
|
||||
|
@ -8,6 +8,16 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||
echo "==Linux===="
|
||||
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||
echo "==OSX======"
|
||||
export PYTHON=36
|
||||
brew install swig;
|
||||
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci;
|
||||
source ./macports-ci install;
|
||||
yes | sudo port install python$PYTHON;
|
||||
yes | sudo port install py$PYTHON-pip;
|
||||
sudo port select --set python3 python$PYTHON;
|
||||
sudo port select --set pip pip$PYTHON;
|
||||
pip install pyinstaller --user;
|
||||
export PATH=$PATH:$(python3 -c "import site; print(site.USER_BASE)")/bin;
|
||||
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
|
||||
echo "==Windows=="
|
||||
choco install ccache
|
||||
|
Loading…
x
Reference in New Issue
Block a user