Skip to content

Commit

Permalink
Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
quicklizard99 committed Nov 3, 2016
1 parent 0049e65 commit 17eae5d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions decode_barcodes.spec
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ if 'darwin' == sys.platform:
a.binaries += TOC([
(lib, str(LIB.joinpath(lib).resolve()), 'BINARY') for lib in MISSING_DYLIBS
])
elif 'win32' == sys.platform:
# libdmtx dylib is not detected because it is loaded by a ctypes call in
# pylibdmtx
fname = 'libdmtx-{0}.dll'.format('64' if sys.maxsize > 2**32 else '32')
a.binaries += TOC([
(fname, Path(sys.argv[0]).parent.parent.joinpath(fname), 'BINARY'),
])


pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
Expand Down

0 comments on commit 17eae5d

Please sign in to comment.