diff --git a/Difficult_Rocket/main.py b/Difficult_Rocket/main.py index 00645f5..745a7bb 100644 --- a/Difficult_Rocket/main.py +++ b/Difficult_Rocket/main.py @@ -81,7 +81,7 @@ class Game(Options): logging_config: Dict logger: logging.Logger - mod_module: List["ModInfo"] + mod_module: List["ModInfo"] = [] def init_logger(self) -> None: log_path = self.logging_config['handlers']['file']['filename'] diff --git a/nuitka-mac.ps1 b/nuitka-mac.ps1 index ac2304d..7ae1b92 100644 --- a/nuitka-mac.ps1 +++ b/nuitka-mac.ps1 @@ -24,12 +24,13 @@ $arg += @("--macos-app-icon=textures/icon.png") $arg += @("--clang") $arg += @("--lto=no") # 包配置 -$arg += @("--nofollow-import-to=objprint,pillow,PIL,cffi") +$arg += @("--nofollow-import-to=objprint,pillow,PIL,cffi,pydoc") $arg += @("--follow-import-to=pyglet") # 数据配置 $arg += @("--include-data-dir=./libs/fonts=./libs/fonts") $arg += @("--include-data-dir=./textures=./textures") $arg += @("--include-data-dir=./configs=./configs") +$arg += @("--include-package=Difficult_Rocket.api") # 编译配置 $arg += @("--show-memory") $arg += @("--show-progress") diff --git a/nuitka-win.ps1 b/nuitka-win.ps1 index ca1be12..c0df9b1 100644 --- a/nuitka-win.ps1 +++ b/nuitka-win.ps1 @@ -32,6 +32,7 @@ $arg += @("--follow-import-to=pyglet") $arg += @("--include-data-dir=./libs/fonts=./libs/fonts") $arg += @("--include-data-dir=./textures=./textures") $arg += @("--include-data-dir=./configs=./configs") +$arg += @("--include-package=Difficult_Rocket.api") # 编译配置 $arg += @("--show-memory") $arg += @("--show-progress")