Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit fe58261

Browse files
committed
Build exe for windows
1 parent 9e886b7 commit fe58261

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.ci/create-spec.py

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
BUILDER_ARGS.append("--console")
7676
BUILDER_ARGS.append("--hidden-import=win32timezone")
7777
BUILDER_ARGS.append("--hide-console=minimize-early")
78+
BUILDER_ARGS.append("--add-binary=assets/libiconv.dll:.")
79+
BUILDER_ARGS.append("--add-binary=assets/libzbar-64.dll:.")
7880

7981
elif SYSTEM == "Darwin":
8082
# Tha application is a GUI in a bundled .app

README.md

100644100755
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ source .seedqrenv/bin/activate
2222
pip install -r requirements.txt
2323
```
2424

25-
If you get this error, please install libxcb-cursor:
25+
If you get this error on Linux, please install libxcb-cursor:
2626
```
2727
# qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
2828
sudo apt install libxcb-cursor0
@@ -40,8 +40,16 @@ Run:
4040
python seedqreader.py
4141
```
4242

43+
If you get this error on Windows, install `vcredist_x64.exe` [Visual C++ Redistributable Packages for Visual Studio 2013](https://www.microsoft.com/en-US/download/details.aspx?id=40784). Then uninstall and install `pyzbar` lib again:
44+
```
45+
FileNotFoundError: Could not find module 'libiconv.dll' (or one of its dependencies). Try using the full path with constructor syntax.
46+
pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'libiconv.dll'. Most likely this dynlib/dll was not found when the application was frozen.
47+
[PYI-5780:ERROR] Failed to execute script 'seedqreader' due to unhandled exception!
48+
```
49+
4350
To build binaries:
4451
```
52+
pip install PyInstaller
4553
python3 .ci/create-spec.py
4654
python3 -m PyInstaller seedqreader.spec
4755
```

assets/libiconv.dll

959 KB
Binary file not shown.

assets/libzbar-64.dll

164 KB
Binary file not shown.

0 commit comments

Comments
 (0)