Skip to content

Commit 9d1104b

Browse files
committed
Remove asserts and docstrings for 3mb smaller build
1 parent 60d30d5 commit 9d1104b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ $arguments = @(
99
'--onefile',
1010
'--windowed',
1111
'--additional-hooks-dir=Pyinstaller/hooks',
12+
'--optimize 2', # Remove asserts and docstrings for smaller build
1213
'--icon=res/icon.ico')
1314
if ($SupportsSplashScreen) {
1415
# https://github.com/pyinstaller/pyinstaller/issues/9022

0 commit comments

Comments
 (0)