Skip to content

Commit

Permalink
fix: correctly generate binary (#112)
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Mannocci <[email protected]>
  • Loading branch information
amannocci authored Nov 4, 2024
1 parent 4c3ad1a commit c7670e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions scripts/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@


def run() -> None:
args = ["-n", "terranova", "--onefile", "--noconfirm"]
exclude_modules = (
"setuptools",
"setuptools._vendor",
"setuptools._vendor.importlib_metadata",
)
args = ["-n", "terranova", "--onefile", "--noconfirm", "--optimize=2"]
exclude_modules = ()
for exclude_module in exclude_modules:
args.extend(["--exclude-module", exclude_module])

Expand Down
6 changes: 3 additions & 3 deletions terranova.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ a = Analysis(
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=['setuptools', 'setuptools._vendor', 'setuptools._vendor.importlib_metadata'],
excludes=[],
noarchive=False,
optimize=0,
optimize=2,
)
pyz = PYZ(a.pure)

Expand All @@ -21,7 +21,7 @@ exe = EXE(
a.scripts,
a.binaries,
a.datas,
[],
[('O', None, 'OPTION'), ('O', None, 'OPTION')],
name='terranova',
debug=False,
bootloader_ignore_signals=False,
Expand Down

0 comments on commit c7670e5

Please sign in to comment.