From 1ba97f718ce622f604ba8062e4100429cfec2d60 Mon Sep 17 00:00:00 2001 From: Thorsten Beier Date: Wed, 5 Mar 2025 11:55:38 +0100 Subject: [PATCH 1/2] accept anything with *.so.* as shared --- include/pyjs/pre_js/load_pkg.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/pyjs/pre_js/load_pkg.js b/include/pyjs/pre_js/load_pkg.js index 274bba8..69a83de 100644 --- a/include/pyjs/pre_js/load_pkg.js +++ b/include/pyjs/pre_js/load_pkg.js @@ -44,18 +44,20 @@ def _py_untar(tarball_path, target_dir): files = tar.getmembers() shared_libs = [] for file in files: - if file.name.endswith(".so"): - + if file.name.endswith(".so") or ".so." in file.name: if target_dir == "/": shared_libs.append(f"/{file.name}") else: shared_libs.append(f"{target_dir}/{file.name}") tar.extractall(target_dir) + actual_shared_libs = [] for file in shared_libs: if not check_wasm_magic_number(Path(file)): print(f" {file} is not a wasm file") - s = json.dumps(shared_libs) + else: + actual_shared_libs.append(file) + s = json.dumps(actual_shared_libs) except Exception as e: print("ERROR",e) raise e From 66d448afe0c4e88c0a20dd23067bd44327731c43 Mon Sep 17 00:00:00 2001 From: Thorsten Beier Date: Wed, 5 Mar 2025 12:00:18 +0100 Subject: [PATCH 2/2] Update docs.yml --- .github/workflows/docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a7f9c2c..0f01143 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -50,7 +50,7 @@ jobs: # upload to github pages ################################################################ - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: docs_build/mkdocs @@ -78,4 +78,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 # or specific "vX.X.X" version tag for this action + uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action