From ba7651a4c4775bf6ece0567bbd91e59d07d8ebb5 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 8 Jun 2023 23:06:30 +0800 Subject: [PATCH] add some more to main.py --- Difficult_Rocket/main.py | 2 +- nuitka-mac.ps1 | 3 ++- nuitka-win.ps1 | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) 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")