Skip to content

Commit 9bd8e35

Browse files
adapt paths to new distribution
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent f7ed4ad commit 9bd8e35

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

scripts/mk_nuget_task.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,15 @@ def unpack(packages, symbols, arch):
7878
if symbols:
7979
files += ["Microsoft.Z3.pdb", "Microsoft.Z3.xml"]
8080
for b in files:
81-
zip_ref.extract(f"{package_dir}/bin/{b}", f"{tmp}")
82-
replace(f"{tmp}/{package_dir}/bin/{b}", f"out/lib/netstandard2.0/{b}")
81+
file = f"{package_dir}/bin/{b}"
82+
if os.path.exists(file):
83+
zip_ref.extract(file, f"{tmp}")
84+
replace(f"{tmp}/{package_dir}/bin/{b}", f"out/lib/netstandard2.0/{b}")
85+
file = os.path.join(file,"netstandard2.0")
86+
if os.path.exists(file):
87+
zip_ref.extract(file, f"{tmp}")
88+
replace(f"{tmp}/{package_dir}/bin/netstandard2.0/{b}", f"out/lib/netstandard2.0/{b}")
89+
8390

8491
def mk_targets(source_root):
8592
mk_dir("out/build")

scripts/mk_win_dist_cmake.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@ def cp_dotnet(arch):
369369
if is_verbose():
370370
print("copy dotnet")
371371
build_dir = get_build_dir(arch)
372-
dist_dir = get_build_dist_path(arch)
372+
dist_dir = get_bin_dist_path(arch)
373373
shutil.copytree(os.path.join(build_dir, "Microsoft.Z3"),
374-
os.path.join(dist_dir, "Microsoft.Z3"),
374+
dist_dir,
375375
dirs_exist_ok=True)
376376

377377
def cp_pdb(arch):

0 commit comments

Comments
 (0)