From f08ea8ebc6f5b04b51c3f937480bd5649ace0ec7 Mon Sep 17 00:00:00 2001 From: Sven Sager Date: Mon, 2 Dec 2024 10:49:31 +0100 Subject: [PATCH] build(app): Collect complete zeroconf module with PyInstaller From `zeroconf` version 0.128.5 `zeroconf._utils` has been changed. The PyInstaller does not collect all submodules automatically, this is now forced via `--collect-submodules`. --- Makefile | 2 ++ make.bat | 1 + 2 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 412e413..cb4ac02 100644 --- a/Makefile +++ b/Makefile @@ -110,6 +110,7 @@ app-licenses: app: build-ui build-rc app-licenses "$(PYTHON)" -m PyInstaller -n $(APP_NAME) \ + --collect-submodules=zeroconf \ --add-data="src/$(PACKAGE)/locale:./$(PACKAGE)/locale" \ --add-data="dist/bundled-libraries.md:$(PACKAGE)/open-source-licenses" \ --add-data="dist/open-source-licenses.*:$(PACKAGE)/open-source-licenses" \ @@ -124,6 +125,7 @@ app: build-ui build-rc app-licenses app-mac: build-ui build-rc app-licenses "$(PYTHON)" -m PyInstaller -n $(APP_NAME) \ + --collect-submodules=zeroconf \ --add-data="src/$(PACKAGE)/locale:./$(PACKAGE)/locale" \ --add-data="dist/bundled-libraries.md:$(PACKAGE)/open-source-licenses" \ --add-data="dist/open-source-licenses.*:$(PACKAGE)/open-source-licenses" \ diff --git a/make.bat b/make.bat index cd2bb32..106a350 100644 --- a/make.bat +++ b/make.bat @@ -59,6 +59,7 @@ goto end --format=plain-vertical ^ --output-file dist\\open-source-licenses.txt %PYTHON% -m PyInstaller -n "%APP_NAME%" ^ + --collect-submodules=zeroconf ^ --add-data="dist\\bundled-libraries.md;%PACKAGE%\\open-source-licenses" ^ --add-data="dist\\open-source-licenses.*;%PACKAGE%\\open-source-licenses" ^ --add-data="src\\%PACKAGE%\\locale;.\\%PACKAGE%\\locale" ^