(ns)
| 491 | |
| 492 | |
| 493 | def get_appx_layout(ns): |
| 494 | if not ns.include_appxmanifest: |
| 495 | return |
| 496 | |
| 497 | yield "AppxManifest.xml", ("AppxManifest.xml", get_appxmanifest(ns)) |
| 498 | yield "_resources.xml", ("_resources.xml", get_resources_xml(ns)) |
| 499 | icons = ns.source / "PC" / "icons" |
| 500 | for px in [44, 50, 150]: |
| 501 | src = icons / "pythonx{}.png".format(px) |
| 502 | yield f"_resources/pythonx{px}.png", src |
| 503 | yield f"_resources/pythonx{px}$targetsize-{px}_altform-unplated.png", src |
| 504 | for px in [44, 150]: |
| 505 | src = icons / "pythonwx{}.png".format(px) |
| 506 | yield f"_resources/pythonwx{px}.png", src |
| 507 | yield f"_resources/pythonwx{px}$targetsize-{px}_altform-unplated.png", src |
| 508 | if ns.include_idle and ns.include_launchers: |
| 509 | for px in [44, 150]: |
| 510 | src = icons / "idlex{}.png".format(px) |
| 511 | yield f"_resources/idlex{px}.png", src |
| 512 | yield f"_resources/idlex{px}$targetsize-{px}_altform-unplated.png", src |
| 513 | yield f"_resources/py.png", icons / "py.png" |
| 514 | sccd = ns.source / SCCD_FILENAME |
| 515 | if sccd.is_file(): |
| 516 | # This should only be set for side-loading purposes. |
| 517 | sccd = _fixup_sccd(ns, sccd, os.getenv("APPX_DATA_SHA256")) |
| 518 | yield sccd.name, sccd |
no test coverage detected
searching dependent graphs…