Skip to content

Commit

Permalink
[Utils] Installer and CI: Fix installer appending incorrect filename (W…
Browse files Browse the repository at this point in the history
…asmEdge#2218)

- Fix CI not failing due to installer link specified of master branch
- Ref - WasmEdge#2217

Signed-off-by: Shreyas Atre <[email protected]>
  • Loading branch information
SAtacker authored Jan 9, 2023
1 parent 55dfb70 commit 610cc21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions utils/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ def extract_archive(
fname = fname.replace("lib64", "lib", 1)
if "Plugin" in fname:
if is_default_path(args):
fname = fname.replace(
join(ipath, CONST_lib_dir, "wasmedge/"), ""
)

fname = join(ipath, "plugin", fname)
else:
fname = join(ipath, CONST_lib_dir, "wasmedge", fname)
Expand Down
2 changes: 1 addition & 1 deletion utils/installer_changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test_diff_env() {
echo "Testing path: $_path_ args: $_common_args_"
bash ./utils/install.sh.old -p "$_path_" $_common_args_
cp "$_path_"/env "$HOME"/env.old
INSTALL_PY_URL="https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.py" bash ./utils/install.sh -p "$_path_" $_common_args_
INSTALL_PY_URL="https://raw.githubusercontent.com/SAtacker/WasmEdge/fix_python_installer/utils/install.py" bash ./utils/install.sh -p "$_path_" $_common_args_
cp "$_path_"/env "$HOME"/env
diff -u \
<(sed '1,/Please/d' "$HOME"/env.old | sed -e 's/\/\//\//g' |
Expand Down

0 comments on commit 610cc21

Please sign in to comment.