diff --git a/libs/utils/nuitka.py b/libs/utils/nuitka.py index 07a2969..e721c8b 100644 --- a/libs/utils/nuitka.py +++ b/libs/utils/nuitka.py @@ -22,7 +22,7 @@ def _add_cmd(cmd: List[str], string: Optional[Any]) -> List[str]: class CompilerHelper(Options): name = 'Nuitka Compiler Helper' - output_path: Path = Path("./build/nuitka-win") + output_path: Path = Path("./build/nuitka") src_file: Path = Path('DR.py') python_cmd: str = 'python' diff --git a/nuitka_build.py b/nuitka_build.py index 925e061..c15211f 100644 --- a/nuitka_build.py +++ b/nuitka_build.py @@ -9,7 +9,6 @@ import sys import time import shutil import tomlkit -import zipfile import platform import traceback import subprocess @@ -79,11 +78,13 @@ if __name__ == '__main__': if f'pyglet.{lib}.{name}' in compiler.no_follow_import: compiler.no_follow_import.remove(f'pyglet.{lib}.{name}') - print(compiler.as_markdown(longest=70)) - if is_github: from pprint import pprint pprint(compiler.option()) + else: + compiler.output_path = Path(f'./build/nuitka-{platform.system().lower()}') + + print(compiler.as_markdown(longest=70)) print(compiler.gen_subprocess_cmd())