Function
write_metadata
(destination: Path, msvc_version: str, sdk_version: str, license_url: str, wine: str)
Source from the content-addressed store, hash-verified
| 300 | |
| 301 | |
| 302 | def write_metadata(destination: Path, msvc_version: str, sdk_version: str, license_url: str, wine: str): |
| 303 | metadata = { |
| 304 | "toolchain": "msvc", |
| 305 | "host": "x64", |
| 306 | "target": "multi", |
| 307 | "targets": ["x64", "arm64"], |
| 308 | "msvcVersion": msvc_version, |
| 309 | "sdkVersion": sdk_version, |
| 310 | "license": license_url, |
| 311 | "wine": wine, |
| 312 | } |
| 313 | (destination / "sc-msvc-package.json").write_text(json.dumps(metadata, indent=2) + "\n", encoding="utf-8") |
| 314 | |
| 315 | |
| 316 | def main(): |
Tested by
no test coverage detected