Skip to content

Commit

Permalink
install: update install script
Browse files Browse the repository at this point in the history
- #68

0. update script
1. remove short-command file
2. use xvm create command alias
3. update xvm

Signed-off-by: sunrisepeak <[email protected]>
  • Loading branch information
Sunrisepeak committed Jan 10, 2025
1 parent 6435075 commit 41fdeb3
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 22 deletions.
3 changes: 0 additions & 3 deletions bin/xim

This file was deleted.

3 changes: 0 additions & 3 deletions bin/xim.bat

This file was deleted.

3 changes: 0 additions & 3 deletions bin/xinstall

This file was deleted.

3 changes: 0 additions & 3 deletions bin/xinstall.bat

This file was deleted.

3 changes: 0 additions & 3 deletions bin/xrun

This file was deleted.

3 changes: 0 additions & 3 deletions bin/xrun.bat

This file was deleted.

2 changes: 1 addition & 1 deletion core/xvm/xvmlib/shims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ fn shim_file<'a>(target: &str, dir: &'a str) -> (String, &'a str, &'a str) {
sfile = format!("{}/{}.bat", dir, target);
} else {
header = "#!/bin/sh";
args_placeholder = "$@";
args_placeholder = "\"$@\"";
sfile = format!("{}/{}", dir, target);
}

Expand Down
14 changes: 11 additions & 3 deletions tools/install.unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,18 @@ fi
cd $RUN_DIR/core
xmake xlings unused install xlings

## install xvm
xim -i xvm -y
export PATH="$HOME/.xlings_data/bin:$PATH"

# 3. install info
# 3. install xvm
xlings install -i xvm -y

# 4. config xlings by xvm
xvm add xim 0.0.2 --alias "xlings install"
xvm add xinstall 0.0.2 --alias "xlings install"
xvm add xrun 0.0.2 --alias "xlings run"
xvm add xchecker 0.0.2 --alias "xlings checker"

# 5. install info
echo -e "${GREEN}[xlings]: xlings installed${RESET}"

echo -e ""
Expand Down
10 changes: 10 additions & 0 deletions tools/install.win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ cd core
xmake xlings unused install xlings
cd ..

REM 4. install xvm
xlings install xvm -y

REM 5. config xlings
nvm add xim 0.0.2 --alias "xlings install"
nvm add xinstall 0.0.2 --alias "xlings install"
nvm add xrun 0.0.2 --alias "xlings run"
nvm add xchecker 0.0.2 --alias "xlings checker"


REM 4. install info
echo [xlings]: xlings installed
echo.
Expand Down

0 comments on commit 41fdeb3

Please sign in to comment.