@@ -75,28 +75,42 @@ jobs:
7575 poetry run python -m nuitka \
7676 --standalone \
7777 --onefile \
78- --follow-imports \
7978 --include-package=discord \
8079 --include-package=websockets \
8180 --include-package=aiosqlite \
82- --include-package=sqlalchemy \
81+ --include-package=sqlalchemy.engine \
82+ --include-package=sqlalchemy.sql \
83+ --include-package=sqlalchemy.orm \
84+ --include-package=sqlalchemy.ext.asyncio \
85+ --include-package=sqlalchemy.dialects.sqlite \
8386 --include-package=fastapi \
8487 --include-package=uvicorn \
8588 --include-package=httpx \
8689 --include-package=toml \
8790 --include-package=starlette \
8891 --include-package=pydantic \
8992 --include-package=anyio \
90- --include-package=aiohttp \
93+ --nofollow-import-to=sqlalchemy.dialects.postgresql \
94+ --nofollow-import-to=sqlalchemy.dialects.mysql \
95+ --nofollow-import-to=sqlalchemy.dialects.oracle \
96+ --nofollow-import-to=sqlalchemy.dialects.mssql \
97+ --nofollow-import-to=sqlalchemy.dialects.firebird \
98+ --nofollow-import-to=sqlalchemy.dialects.sybase \
99+ --nofollow-import-to=aiohttp.test_utils \
100+ --nofollow-import-to=unittest \
101+ --nofollow-import-to=test \
102+ --nofollow-import-to=tests \
103+ --nofollow-import-to=pytest \
91104 --include-data-files=pyproject.toml=pyproject.toml \
92105 --output-dir=build \
93106 --output-filename=onedisc.exe \
94- --lto=yes \
107+ --lto=no \
108+ --jobs=1 \
95109 --windows-icon-from-ico=icon.ico \
96110 --file-version=${{ needs.get-version-number.outputs.VERSION }}.${{ needs.get-version-number.outputs.SUB_VERSION }} \
97111 --product-version=${{ needs.get-version-number.outputs.VERSION }}.${{ needs.get-version-number.outputs.SUB_VERSION }} \
98112 --product-name=OneDisc \
99- --enable -console \
113+ --windows -console-mode=force \
100114 --file-description="OneBot Implementation for Discord" \
101115 --company-name="IT Craft Development Team" \
102116 --copyright="Copyright (c) 2025 IT Craft Development Team" \
@@ -160,23 +174,36 @@ jobs:
160174 poetry run python -m nuitka \
161175 --standalone \
162176 --onefile \
163- --follow-imports \
164177 --include-package=discord \
165178 --include-package=websockets \
166179 --include-package=aiosqlite \
167- --include-package=sqlalchemy \
180+ --include-package=sqlalchemy.engine \
181+ --include-package=sqlalchemy.sql \
182+ --include-package=sqlalchemy.orm \
183+ --include-package=sqlalchemy.ext.asyncio \
184+ --include-package=sqlalchemy.dialects.sqlite \
168185 --include-package=fastapi \
169186 --include-package=uvicorn \
170187 --include-package=httpx \
171188 --include-package=toml \
172189 --include-package=starlette \
173190 --include-package=pydantic \
174191 --include-package=anyio \
175- --include-package=aiohttp \
192+ --nofollow-import-to=sqlalchemy.dialects.postgresql \
193+ --nofollow-import-to=sqlalchemy.dialects.mysql \
194+ --nofollow-import-to=sqlalchemy.dialects.oracle \
195+ --nofollow-import-to=sqlalchemy.dialects.mssql \
196+ --nofollow-import-to=sqlalchemy.dialects.firebird \
197+ --nofollow-import-to=sqlalchemy.dialects.sybase \
198+ --nofollow-import-to=aiohttp.test_utils \
199+ --nofollow-import-to=unittest \
200+ --nofollow-import-to=test \
201+ --nofollow-import-to=tests \
202+ --nofollow-import-to=pytest \
176203 --include-data-files=pyproject.toml=pyproject.toml \
177204 --output-dir=build \
178205 --output-filename=onedisc \
179- --lto=yes \
206+ --lto=no \
180207 --assume-yes-for-downloads \
181208 --static-libpython=no \
182209 main.py
@@ -235,23 +262,36 @@ jobs:
235262 poetry run python -m nuitka \
236263 --standalone \
237264 --onefile \
238- --follow-imports \
239265 --include-package=discord \
240266 --include-package=websockets \
241267 --include-package=aiosqlite \
242- --include-package=sqlalchemy \
268+ --include-package=sqlalchemy.engine \
269+ --include-package=sqlalchemy.sql \
270+ --include-package=sqlalchemy.orm \
271+ --include-package=sqlalchemy.ext.asyncio \
272+ --include-package=sqlalchemy.dialects.sqlite \
243273 --include-package=fastapi \
244274 --include-package=uvicorn \
245275 --include-package=httpx \
246276 --include-package=toml \
247277 --include-package=starlette \
248278 --include-package=pydantic \
249279 --include-package=anyio \
250- --include-package=aiohttp \
280+ --nofollow-import-to=sqlalchemy.dialects.postgresql \
281+ --nofollow-import-to=sqlalchemy.dialects.mysql \
282+ --nofollow-import-to=sqlalchemy.dialects.oracle \
283+ --nofollow-import-to=sqlalchemy.dialects.mssql \
284+ --nofollow-import-to=sqlalchemy.dialects.firebird \
285+ --nofollow-import-to=sqlalchemy.dialects.sybase \
286+ --nofollow-import-to=aiohttp.test_utils \
287+ --nofollow-import-to=unittest \
288+ --nofollow-import-to=test \
289+ --nofollow-import-to=tests \
290+ --nofollow-import-to=pytest \
251291 --include-data-files=pyproject.toml=pyproject.toml \
252292 --output-dir=build \
253293 --output-filename=onedisc \
254- --lto=yes \
294+ --lto=no \
255295 --assume-yes-for-downloads \
256296 main.py
257297
0 commit comments