Skip to content

Commit

Permalink
Fix PyInstaller spec to allow building with Python 3 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Pidgeot committed Mar 29, 2020
1 parent 4cd3ce6 commit 699f1d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lnp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ if sys.platform == 'win32':
s = self.old_toprettyxml(indent, newl, encoding)
# Make sure we only modify our own manifest
if 'name="lnp"' in s:
d = indent + '<dpiAware>false</dpiAware>' + newl
s =s.replace('</assembly>',d+'</assembly>')
d = indent + '<asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"><windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"><dpiAware>false</dpiAware></windowsSettings></asmv3:application>' + newl
s = s.replace('</assembly>',d+'</assembly>')
return s
Manifest.toprettyxml = new_toprettyxml

Expand Down Expand Up @@ -59,7 +59,7 @@ pyz = PYZ(a.pure)
if sys.platform != 'darwin':
exe = EXE(
pyz, a.scripts, a.binaries, a.zipfiles, a.datas, name='PyLNP'+extension,
debug=False, strip=None, upx=True, console=False, icon='LNP.ico')
debug=False, strip=None, upx=False, console=False, icon='LNP.ico')
else:
info = {'NSHighResolutionCapable': 'True'}
exe = EXE(
Expand Down

0 comments on commit 699f1d5

Please sign in to comment.