Track app assets
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
python tools/build_app.py [--art FOLDER] -> dist/UnheardCity/ and dist/UnheardCity-<ver>-<os>.zip|.tar.gz
|
||||
|
||||
One command does everything: artwork (app/assets, made from FOLDER - default ~/Downloads/Arkham City - when
|
||||
missing or older than tools/make_assets.py), PyInstaller bundle, THIRD_PARTY_LICENSES.txt, docs, archive.
|
||||
One command does everything: artwork (app/assets, committed; remade from ~/Downloads/Arkham City when missing,
|
||||
or from FOLDER with --art), PyInstaller bundle, THIRD_PARTY_LICENSES.txt, docs, archive.
|
||||
|
||||
Requirements: the dev environment (`pip install -e .[app,dev]`). All native libraries come from the pinned
|
||||
PyPI wheels (Qt, libsndfile with libvorbis/FLAC/opus/mpg123, soxr); no external programs are bundled or
|
||||
@@ -38,8 +38,7 @@ def main():
|
||||
assets = os.path.join(ROOT, "app", "assets")
|
||||
art = sys.argv[sys.argv.index("--art") + 1] if "--art" in sys.argv else None
|
||||
ico = os.path.join(assets, "app_icon.ico")
|
||||
stale = not os.path.exists(ico) or os.path.getmtime(ico) < os.path.getmtime(os.path.join(ROOT, "tools", "make_assets.py"))
|
||||
if art or stale:
|
||||
if art or not os.path.exists(ico):
|
||||
import make_assets
|
||||
src = art or make_assets.DEFAULT_SRC
|
||||
if os.path.exists(os.path.join(src, "bac_logo_full.png")):
|
||||
|
||||
Reference in New Issue
Block a user