3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-06 14:13:23 +00:00

name the package

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-01-08 15:52:50 -08:00
parent 36ed1ffac2
commit afbfea8ce6
2 changed files with 5 additions and 5 deletions

View file

@ -86,10 +86,11 @@ def mk_icon(source_root):
def create_nuget_spec(version, repo, branch, commit, symbols, arch):
arch = f"{arch}." if arch == "x86" else ""
contents = """<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Microsoft.Z3</id>
<id>Microsoft.Z3{4}</id>
<version>{0}</version>
<authors>Microsoft</authors>
<description>
@ -110,10 +111,9 @@ Linux Dependencies:
<group targetFramework=".netstandard2.0" />
</dependencies>
</metadata>
</package>""".format(version, repo, branch, commit)
</package>""".format(version, repo, branch, commit, arch)
print(contents)
sym = "sym." if symbols else ""
arch = f"{arch}." if arch == "x86" else ""
file = f"out/Microsoft.Z3.{arch}{sym}nuspec"
print(file)
with open(file, 'w') as f: