Changeset 947:23ae37c287b6


Ignore:
Timestamp:
05/07/19 18:30:24 (6 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Proper manifest is added to the Windows EXEs (re #347)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r938 r947  
    1212import mlx.const
    1313import mlx.update
     14
     15defaultManifest="""<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
     16<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
     17  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
     18    <security>
     19      <requestedPrivileges>
     20        <requestedExecutionLevel level="asInvoker"/>
     21      </requestedPrivileges>
     22    </security>
     23  </trustInfo>
     24  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
     25    <application>
     26      <!--The ID below indicates application support for Windows Vista -->
     27      <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
     28      <!--The ID below indicates application support for Windows 7 -->
     29      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
     30      <!--The ID below indicates application support for Windows 8 -->
     31      <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
     32      <!--The ID below indicates application support for Windows 8.1 -->
     33      <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
     34      <!--The ID below indicates application support for Windows 10 -->
     35      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
     36    </application>
     37  </compatibility>
     38</assembly>"""
     39
     40adminManifest=defaultManifest.replace("asInvoker", "requireAdministrator")
     41
     42RT_MANIFEST=24
    1443
    1544data_files = [("sounds", glob(os.path.join("sounds", "*.*")))]
     
    183212      requires = ["pyuipc", "xplra"],
    184213      windows = [{ "script" : "runmlx.py",
    185                    "icon_resources" : [(1, "logo.ico")]},
     214                   "icon_resources" : [(1, "logo.ico")],
     215                   "other_resources": [(RT_MANIFEST, 1, defaultManifest)]},
    186216                 { "script" : "mlxupdate.py",
    187                    "uac_info" : "requireAdministrator"}],
     217                   "other_resources": [(RT_MANIFEST, 1, adminManifest)]}],
    188218      options = { "py2exe" : { "packages" : "gi, lxml",
    189219                               "skip_archive": True} },
Note: See TracChangeset for help on using the changeset viewer.