diff --git a/linux.spec b/linux.spec index 5b53784..149f794 100644 --- a/linux.spec +++ b/linux.spec @@ -2,6 +2,8 @@ block_cipher = None +with open('_version.py', 'r') as versinfo: + exec(versinfo.read()) a = Analysis(['gui.py'], pathex=['/home/ivan/Code/chordsheet'], @@ -22,16 +24,24 @@ pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE(pyz, a.scripts, - a.binaries, - a.zipfiles, - a.datas, [], + exclude_binaries=True, name='chordsheet', - icon='ui/icon.ico', + icon='ui/icon.png', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, upx_exclude=[], runtime_tmpdir=None, - console=False ) + console=False, + version='version.rc') + +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='chordsheet-'+version)