From 079256a99fefc4bfa524a12514da55c5d57f4ffb Mon Sep 17 00:00:00 2001 From: blitzmann Date: Wed, 24 Jun 2020 13:01:36 -0400 Subject: [PATCH] some tweaks to get the languages to compile --- .appveyor.yml | 6 +++--- .travis.yml | 2 +- pyfa.spec | 1 + scripts/compile_lang.py | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index f68873eee..ba1b330f7 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -53,10 +53,10 @@ before_build: build_script: - ps: echo("Build pyfa:") - # Build gamedata DB - - cmd: "python db_update.py" - # Build language files + # Build language files - cmd: "python scripts/compile_lang.py" + # Build gamedata DB + - cmd: "python db_update.py" # Build command for PyInstaller - cmd: "python -m PyInstaller --noupx --clean --windowed --noconsole -y pyfa.spec" # Copy over manifest (See pyfa-org/pyfa#1622) diff --git a/.travis.yml b/.travis.yml index d1560af61..f353da649 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,8 @@ matrix: before_install: - bash scripts/setup-osx.sh install: - - python3 db_update.py - python3 scripts/compile_lang.py + - python3 db_update.py - export PYFA_VERSION="$(python3 scripts/dump_version.py)" - bash scripts/package-osx.sh before_deploy: diff --git a/pyfa.spec b/pyfa.spec index dc121ce20..f89334f28 100644 --- a/pyfa.spec +++ b/pyfa.spec @@ -15,6 +15,7 @@ added_files = [ ('imgs/icons/*.png', 'imgs/icons'), ('imgs/renders/*.png', 'imgs/renders'), ('service/jargon/*.yaml', 'service/jargon'), + ('locale', 'locale'), (requests.certs.where(), '.'), # is this needed anymore? ('eve.db', '.'), ('README.md', '.'), diff --git a/scripts/compile_lang.py b/scripts/compile_lang.py index 169652dc9..34566ec46 100644 --- a/scripts/compile_lang.py +++ b/scripts/compile_lang.py @@ -1,5 +1,5 @@ import os, glob -from scripts import msgfmt +import msgfmt import sys