diff --git a/Difficult_Rocket/__init__.py b/Difficult_Rocket/__init__.py index 376a20c..f82f5b8 100644 --- a/Difficult_Rocket/__init__.py +++ b/Difficult_Rocket/__init__.py @@ -11,7 +11,7 @@ from pathlib import Path from Difficult_Rocket.api.types import Options, Version sdk_version = Version("0.8.5.2") # SDK 版本 -build_version = Version("2.1.2.0") # 编译文件版本(与游戏本体无关) +build_version = Version("2.1.3.0") # 编译文件版本(与游戏本体无关) Api_version = Version("0.1.1.0") # API 版本 __version__ = sdk_version diff --git a/docs/src/change_log/build_file.md b/docs/src/change_log/build_file.md index 985a561..92fd51e 100644 --- a/docs/src/change_log/build_file.md +++ b/docs/src/change_log/build_file.md @@ -2,7 +2,14 @@ # DR 构建 更新日志 - 最新构建版本号 - - build_version: 2.1.2.0 + - build_version: 2.1.3.0 + +## 20230715 build 2.1.3.0 + +### 修改 + +- 添加 `email` `win32con` `smtplib` `win32evtlog` `win32evtlogutil` `win32api` 到 `--no-follow-import` + - Add `email`, `win32con`, `smtplib`, `win32evtlog`, `win32evtlogutil`, `win32api` to `--no-follow-import` ## 20230708 build 2.1.2.0 diff --git a/libs/utils/nuitka.py b/libs/utils/nuitka.py index 37b6083..63fbd39 100644 --- a/libs/utils/nuitka.py +++ b/libs/utils/nuitka.py @@ -62,7 +62,8 @@ class CompilerHelper(Options): icon_path: Path = Path('textures/icon.png') follow_import: List[str] = ['pyglet'] - no_follow_import: List[str] = ['objprint', 'pillow', 'PIL', 'cffi', 'pydoc', 'numpy'] + no_follow_import: List[str] = ['objprint', 'pillow', 'PIL', 'cffi', 'pydoc', 'numpy', 'email', 'win32con', + 'smtplib', 'win32evtlog', 'win32evtlogutil', 'win32api'] include_data_dir: List[Tuple[str, str]] = [('./libs/fonts', './libs/fonts'), ('./textures', './textures'), @@ -77,7 +78,7 @@ class CompilerHelper(Options): if not self.compat_nuitka_version.accept(compat_version): warnings.warn( f"Nuitka version may not compat with {compat_version}\n" - "requirement: {self.compat_nuitka_version}" + f"requirement: {self.compat_nuitka_version}" ) # 非 windows 平台不使用 msvc if platform.system() != 'Windows':