Skip to content

Commit

Permalink
Merge pull request #226 from Chia-Network/EL.windows-pyinstaller-2.4.4
Browse files Browse the repository at this point in the history
Specifically add mpir_*.dll to the windows exe
  • Loading branch information
TheLastCicada authored Nov 12, 2024
2 parents 705ac64 + 0b78fed commit c6779a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyinstaller.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import importlib
import pathlib
import sys
from PyInstaller.utils.hooks import collect_submodules

ROOT = pathlib.Path(importlib.import_module("chia").__file__).absolute().parent.parent
Expand All @@ -13,12 +14,15 @@ datas.append(("./app/core/chialisp/*.hex", "./app/core/chialisp"))
datas.append(("./.env", "./"))
datas.append(("./config.yaml", "./"))

bins = []
if sys.platform == "win32":
bins.append((ROOT / "mpir_*.dll", "."))

block_cipher = None

a = Analysis(
["app/main.py"],
pathex=["./chia-blockchain"],
binaries=[],
binaries=bins,
datas=datas,
hiddenimports=[*collect_submodules("chia")],
hookspath=[],
Expand Down

0 comments on commit c6779a9

Please sign in to comment.