Fix running dmgbuild again

This commit is contained in:
Timmy Welch 2023-12-25 22:50:11 -08:00
parent 888c50d72a
commit 6e56872121
2 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,6 @@ import sys
import tarfile
import zipfile
from dmgbuild.__main__ import main as dmg_main
from comictaggerlib.ctversion import __version__
@ -74,6 +72,8 @@ if __name__ == "__main__":
zip_file = pathlib.Path(f"dist/{final_name}")
if platform.system() == "Darwin":
from dmgbuild.__main__ import main as dmg_main
sys.argv = [
"zip_artifacts",
"-s",

View File

@ -237,8 +237,8 @@ deps =
extras =
all
commands =
python -c 'import importlib,platform; importlib.import_module("icu") if platform.system() != "Windows" else ...' # Sanity check for icu
pyinstaller -y build-tools/comictagger.spec
python -c 'import importlib,platform; importlib.import_module("icu") if platform.system() != "Windows" else ...' # Sanity check for icu
[testenv:appimage]
description = Generate appimage executable