Skip to content
Snippets Groups Projects
Commit c50560b7 authored by inso's avatar inso
Browse files

Force lrelease

parent 0c51f44b
Branches
Tags
No related merge requests found
......@@ -4,6 +4,8 @@ eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
cd $HOME/build/ucoin-io/sakia
pyenv activate sakia-env
pip install coveralls
pip install pyinstaller
......@@ -12,10 +14,12 @@ if [ $TRAVIS_OS_NAME == "linux" ]
then
pip install -U git+https://github.com/posborne/dbus-python.git
pip install notify2
export PATH=/tmp/qt/5.5/5.5/gcc_64/bin:$PATH
fi
python gen_resources.py
python gen_translations.py
python gen_translations.py --lrelease
if [ $TRAVIS_OS_NAME == "osx" ]
then
......
......@@ -27,7 +27,7 @@ def prepare_qm():
for (ts_file, qm_file) in translations:
# avoid conflict with qt4 lrelease by running qtchooser directly
if sys.platform.startswith('win') or shutil.which("qtchooser") == None:
if sys.platform.startswith('win') or shutil.which("qtchooser") == None or "--lrelease" in sys.argv:
subprocess.call(["lrelease", ts_file, "-qm", qm_file])
else:
subprocess.call(["qtchooser", "-run-tool=lrelease", "-qt=5", ts_file, "-qm", qm_file])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment