diff --git a/pyproject.toml b/pyproject.toml index 543990f..4d34d42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,7 +110,7 @@ include-data-dir = [ ['./config', './config'], ['./assets', './assets'] ] -include-packages = ['Difficult_Rocket.api'] +include-package = ['Difficult_Rocket.api'] # DR.api 没有直接 import, 所以需要手动添加 disable-plugin = ['pyqt5', 'tk-inter'] \ No newline at end of file diff --git a/scripts/lndl-config.py b/scripts/lndl-config.py index 97e8533..bc6efa7 100644 --- a/scripts/lndl-config.py +++ b/scripts/lndl-config.py @@ -28,13 +28,13 @@ def gen_pyglet_no_follow_import() -> list: ] no_follow_import += [ f"pyglet.canvas.{x}" - for x in [ + for x in ( "win32", "xlib", "xlib_vidmoderstore", "cocoa", "headless", - ] + ) ] no_follow_import += [ f"pyglet.gl.{x}" for x in ["win32", "xlib", "cocoa", "headless"] @@ -67,7 +67,7 @@ def main(config: raw_config_type) -> nuitka_config_type: config['macos-app-version'] = str(sdk_version) config['nofollow-import-to'] += gen_pyglet_no_follow_import() + config['output-dir'] = './build/nuitka-' + platform.system().lower() print('done', config) return config -