mirror of
https://github.com/naruxde/revpicommander.git
synced 2025-11-08 16:43:53 +01:00
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`.
This commit is contained in:
2
Makefile
2
Makefile
@@ -110,6 +110,7 @@ app-licenses:
|
|||||||
|
|
||||||
app: build-ui build-rc app-licenses
|
app: build-ui build-rc app-licenses
|
||||||
"$(PYTHON)" -m PyInstaller -n $(APP_NAME) \
|
"$(PYTHON)" -m PyInstaller -n $(APP_NAME) \
|
||||||
|
--collect-submodules=zeroconf \
|
||||||
--add-data="src/$(PACKAGE)/locale:./$(PACKAGE)/locale" \
|
--add-data="src/$(PACKAGE)/locale:./$(PACKAGE)/locale" \
|
||||||
--add-data="dist/bundled-libraries.md:$(PACKAGE)/open-source-licenses" \
|
--add-data="dist/bundled-libraries.md:$(PACKAGE)/open-source-licenses" \
|
||||||
--add-data="dist/open-source-licenses.*:$(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
|
app-mac: build-ui build-rc app-licenses
|
||||||
"$(PYTHON)" -m PyInstaller -n $(APP_NAME) \
|
"$(PYTHON)" -m PyInstaller -n $(APP_NAME) \
|
||||||
|
--collect-submodules=zeroconf \
|
||||||
--add-data="src/$(PACKAGE)/locale:./$(PACKAGE)/locale" \
|
--add-data="src/$(PACKAGE)/locale:./$(PACKAGE)/locale" \
|
||||||
--add-data="dist/bundled-libraries.md:$(PACKAGE)/open-source-licenses" \
|
--add-data="dist/bundled-libraries.md:$(PACKAGE)/open-source-licenses" \
|
||||||
--add-data="dist/open-source-licenses.*:$(PACKAGE)/open-source-licenses" \
|
--add-data="dist/open-source-licenses.*:$(PACKAGE)/open-source-licenses" \
|
||||||
|
|||||||
1
make.bat
1
make.bat
@@ -59,6 +59,7 @@ goto end
|
|||||||
--format=plain-vertical ^
|
--format=plain-vertical ^
|
||||||
--output-file dist\\open-source-licenses.txt
|
--output-file dist\\open-source-licenses.txt
|
||||||
%PYTHON% -m PyInstaller -n "%APP_NAME%" ^
|
%PYTHON% -m PyInstaller -n "%APP_NAME%" ^
|
||||||
|
--collect-submodules=zeroconf ^
|
||||||
--add-data="dist\\bundled-libraries.md;%PACKAGE%\\open-source-licenses" ^
|
--add-data="dist\\bundled-libraries.md;%PACKAGE%\\open-source-licenses" ^
|
||||||
--add-data="dist\\open-source-licenses.*;%PACKAGE%\\open-source-licenses" ^
|
--add-data="dist\\open-source-licenses.*;%PACKAGE%\\open-source-licenses" ^
|
||||||
--add-data="src\\%PACKAGE%\\locale;.\\%PACKAGE%\\locale" ^
|
--add-data="src\\%PACKAGE%\\locale;.\\%PACKAGE%\\locale" ^
|
||||||
|
|||||||
Reference in New Issue
Block a user