mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-29 23:20:03 +03:00
Use a lib folder for pyotherside
This commit is contained in:
parent
7d69cbc395
commit
4d36c59bbb
@ -37,10 +37,12 @@ before_install:
|
||||
then
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
brew update
|
||||
wget https://github.com/thp/pyotherside/archive/$PYOTHERSIDE_VERSION.tar.gz
|
||||
wget https://github.com/thp/pyotherside/archive/$PYOTHERSIDE_VERSION.tar.gz -P ./lib
|
||||
cd lib
|
||||
tar -xzvf $PYOTHERSIDE_VERSION.tar.gz
|
||||
# Patch PyOtherSide to not be built with debug output
|
||||
echo "DEFINES += QT_NO_DEBUG_OUTPUT" >> pyotherside-$PYOTHERSIDE_VERSION/src/src.pro
|
||||
cd ..
|
||||
fi
|
||||
|
||||
install:
|
||||
@ -57,11 +59,11 @@ install:
|
||||
env PYTHON_CONFIGURE_OPTS="--enable-framework CC=clang" pyenv install $PY_VERSION
|
||||
pyenv global system $PY_VERSION
|
||||
# Build and install PyOtherside
|
||||
cd pyotherside-$PYOTHERSIDE_VERSION
|
||||
cd lib/pyotherside-$PYOTHERSIDE_VERSION
|
||||
qmake
|
||||
make
|
||||
sudo make install
|
||||
cd ..
|
||||
cd ../..
|
||||
fi
|
||||
- pip install --upgrade pip
|
||||
# Install linting tools
|
||||
|
@ -33,7 +33,9 @@ install:
|
||||
|
||||
# Build and install PyOtherSide
|
||||
# Reference: https://pyotherside.readthedocs.io/en/latest/#building-for-windows
|
||||
- ps: wget "https://github.com/thp/pyotherside/archive/$env:PYOTHERSIDE_VERSION.zip" -OutFile "pyotherside-$env:PYOTHERSIDE_VERSION.zip"
|
||||
- mkdir lib
|
||||
- ps: wget "https://github.com/thp/pyotherside/archive/$env:PYOTHERSIDE_VERSION.zip" -OutFile ".\lib\pyotherside-$env:PYOTHERSIDE_VERSION.zip"
|
||||
- cd .\lib
|
||||
- 7z x pyotherside-%PYOTHERSIDE_VERSION%.zip
|
||||
- cd .\pyotherside-%PYOTHERSIDE_VERSION%
|
||||
- ps: (Get-Content .\src\qmldir).replace('pyothersideplugin', 'pyothersideplugin1') | Set-Content .\src\qmldir
|
||||
|
Loading…
Reference in New Issue
Block a user