From bdc45ad809d6de5f689eb499595a7cf7c9af84a3 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Thu, 29 May 2025 20:55:12 +0400 Subject: [PATCH] Fixed the contents of the WASM build package --- .github/scripts/common.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/scripts/common.py b/.github/scripts/common.py index aa86585..6aa3233 100644 --- a/.github/scripts/common.py +++ b/.github/scripts/common.py @@ -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/" (debian base). +# Depending of base distribution, libraries are in "lib64" (redhat base) or "lib/" (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/`. # 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.