MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / write_metadata

Function write_metadata

Tools/Support/PortableMSVCDownloader.py:302–313  ·  view source on GitHub ↗
(destination: Path, msvc_version: str, sdk_version: str, license_url: str, wine: str)

Source from the content-addressed store, hash-verified

300
301
302def 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
316def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected