mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-27 21:39:34 +00:00
Merge pull request #827 from kiwix/wasm_package_fix
Fixed the contents of the WASM build package
This commit is contained in:
10
.github/scripts/common.py
vendored
10
.github/scripts/common.py
vendored
@ -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.
|
||||
|
Reference in New Issue
Block a user