use lndl-nuitka

This commit is contained in:
shenjack 2023-12-02 23:49:23 +08:00
parent 8a2cb484ed
commit 4763ca13d6
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -49,12 +49,55 @@ exclude = [
'libs/utils/logger-old.py', # 旧版日志, 忽略他就好 'libs/utils/logger-old.py', # 旧版日志, 忽略他就好
] ]
[tool.lndl]
nuitka-script = 'nuitka-script.py'
[tool.lndl.nuitka] [tool.lndl.nuitka]
main = "DR.py"
lto = "yes" lto = "yes"
main = "DR.py"
clang = true clang = true
msvc = "latest" msvc = "latest"
standalone = true mingw64 = false
output-dir = "build"
standalone = true
output-dir = "build/nuitka"
run = false
disable-console = false
assume-yes-for-download = true
company-name = 'tool-shenjack-workshop'
product-name = 'Difficult Rocket'
file-version = false # require script
product-version = false # require script
macos-app-version = false # require script
file-description = 'Difficult Rocket a rocket game'
copyright = 'Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com'
windows-icon-from-ico = 'assets/textures/icon.png' # require script
macos-app-icon = 'assets/textures/icon.png' # require script
linux-icon = 'assets/textures/icon.png' # require script
nofollow-import-to = [
'objprint',
'PIL',
'cffi',
'pydoc',
'numpy',
'email',
'win32con',
'smtplib',
'win32evtlog',
'win32evtlogutil',
'win32api'
]
include-data-dir = [
['./config', './config'],
['./assets', './assets']
]
include-packages = ['Difficult_Rocket.api']
# DR.api 没有直接 import, 所以需要手动添加
disable-plugin = ['pyqt5', 'tk-inter']