Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
Pål Ellingsen committed Apr 12, 2019
1 parent 02c514b commit e842aa1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and a standalone program in src folder.

Build instructions:

pyinstaller --onefile .\src\print_label.py
pyinstaller print_label.spec


### License
Expand Down
17 changes: 12 additions & 5 deletions print_label.spec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# -*- mode: python -*-

block_cipher = None

from kivy.deps import sdl2, glew

a = Analysis(['src\\print_label.py'],
pathex=['C:\\Users\\pale\\Documents\\AeN_print'],
binaries=[],
datas=[],
datas=[('src/Images', 'Images')],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
Expand All @@ -15,18 +15,25 @@ a = Analysis(['src\\print_label.py'],
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)



pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,

a.datas += [('label.kv', 'src/label.kv','DATA')]

exe = EXE(pyz, Tree('src/Images', 'Images'),
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
name='print_label',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=True )
console=False,
icon='src/Images/data_matrix.ico')

0 comments on commit e842aa1

Please sign in to comment.