Fix running dmgbuild

This commit is contained in:
Timmy Welch 2023-12-25 22:41:57 -08:00
parent 231b600a0e
commit 888c50d72a
2 changed files with 6 additions and 4 deletions

View File

@ -3,11 +3,12 @@ from __future__ import annotations
import os
import pathlib
import platform
import runpy
import sys
import tarfile
import zipfile
from dmgbuild.__main__ import main as dmg_main
from comictaggerlib.ctversion import __version__
@ -78,9 +79,9 @@ if __name__ == "__main__":
"-s",
str(pathlib.Path(__file__).parent / "dmgbuild.conf"),
f"{app} {__version__}",
f"{final_name}.dmg",
f"dist/{final_name}.dmg",
]
runpy.run_module("dmgbuild", alter_sys=True)
dmg_main()
elif platform.system() == "Windows":
Zip(zip_file, path)
else:

View File

@ -234,7 +234,6 @@ depends =
pypi-upload
deps =
pyinstaller>=5.6.2,!=6.0.0
dmgbuild
extras =
all
commands =
@ -280,6 +279,8 @@ depends =
wheel
pyinstaller
appimage
deps =
dmgbuild
commands =
python ./build-tools/zip_artifacts.py