@@ -77,29 +77,24 @@ def unpack(packages, symbols, arch):
77
77
replace (f"{ tmp } /{ package_dir } /bin/libz3.pdb" , f"out/runtimes/{ dst } /native/libz3.pdb" )
78
78
files = ["Microsoft.Z3.dll" , "Microsoft.Z3.pdb" , "Microsoft.Z3.xml" ]
79
79
for b in files :
80
- tmp_package_dir = os .path .join (tmp , package_dir )
81
- tmp_bin_dir = os .path .join (tmp_package_dir , "bin" )
82
- file1 = os .path .join (tmp_bin_dir , b )
83
- file2 = os .path .join (tmp_bin_dir , "netstandard2.0" , b )
80
+ file1 = f"{ package_dir } /bin/{ b } "
81
+ file2 = f"{ package_dir } /bin/netstandard2.0/{ b } "
84
82
found_path = False
85
83
# check that file1 exists in zip_ref:
86
84
try :
87
85
zip_ref .extract (file1 , f"{ tmp } " )
88
- replace (f"{ tmp } /{ package_dir } /bin/ { b } " , f"out/lib/netstandard2.0/{ b } " )
86
+ replace (f"{ tmp } /{ file1 } " , f"out/lib/netstandard2.0/{ b } " )
89
87
found_path = True
90
88
except :
91
89
pass
92
90
try :
93
91
zip_ref .extract (file2 , f"{ tmp } " )
94
- replace (f"{ tmp } /{ package_dir } /bin/netstandard2.0/ { b } " , f"out/lib/netstandard2.0/{ b } " )
92
+ replace (f"{ tmp } /{ file2 } " , f"out/lib/netstandard2.0/{ b } " )
95
93
found_path = True
96
94
except :
97
95
pass
98
96
if not found_path :
99
97
print (f"Could not find file path { file1 } nor { file2 } " )
100
- print (tmp , os .listdir (tmp ))
101
- print (tmp_package_dir , os .listdir (tmp_package_dir ))
102
- print (tmp_bin_dir , os .listdir (tmp_bin_dir ))
103
98
104
99
105
100
def mk_targets (source_root ):
0 commit comments