Package generated nspr4.dll

This commit is contained in:
Fernando Jiménez Moreno 2018-09-11 17:44:10 +02:00
parent c3ed1d11c0
commit a56dc489d5

View file

@ -146,6 +146,19 @@ def copy_windows_dependencies(binary_path, destination):
for d in deps:
shutil.copy(path.join(binary_path, d), destination)
# Search for the generated nspr4.dll
build_path = path.join(binary_path, "build")
nspr4 = "nspr4.dll"
nspr4_path = None
for root, dirs, files in os.walk(build_path):
if nspr4 in files:
nspr4_path = path.join(root, nspr4)
break
if nspr4_path is None:
print("WARNING: could not find nspr4.dll")
else:
shutil.copy(nspr4_path, destination)
def change_prefs(resources_path, platform):
print("Swapping prefs")