From 27e782f29362ec1ac5cf8936a24e10ef31a19a0a Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 3 Dec 2023 19:04:10 +0800 Subject: [PATCH] compat nuitka --- pyproject.toml | 2 +- scripts/lndl-config.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -