Fixed the contents of the WASM build package

This commit is contained in:
Veloman Yunkan 2025-05-29 20:55:12 +04:00
parent a0a5188a4b
commit bdc45ad809
1 changed files with 7 additions and 3 deletions

View File

@ -69,12 +69,16 @@ def major_version(version: str) -> str:
return version.split(".")[0]
# Depending of base distribution, libraries are in "lib64" (redhat base) or "lib/<arch>" (debian base).
# Depending of base distribution, libraries are in "lib64" (redhat base) or "lib/<arch>" (debian base)
# (WASM being a special case, when libraries are directly under "lib").
# On top of that, when cross-compiling, libraries are always put in `lib/<arch>`.
# As we use this as glob regex to select which files to add to archive, this is not a problem to have both.
def lib_prefix(file):
yield "lib64/" + file
yield "lib/*/" + file
if COMPILE_CONFIG == "wasm":
yield "lib/" + file
else:
yield "lib64/" + file
yield "lib/*/" + file
# We have build everything. Now create archives for public deployement.