Skip to content

Commit

Permalink
docs: update READMe
Browse files Browse the repository at this point in the history
  • Loading branch information
yeshan333 committed Jun 18, 2024
1 parent 99a4b30 commit 1b0323b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,15 @@ vfox use -g elixir@1.16.2
```

You can reference the E2E test in MacOS 12: [https://github.com/version-fox/vfox-elixir/actions/workflows/e2e_test.yaml](https://github.com/version-fox/vfox-elixir/actions/workflows/e2e_test.yaml)

## install ELixir in Windows platform

You should use the v.0.5.3+ vfox version to add vfox-elixir plugin in Wondows platform. **Only support install Elixir versions after v1.15**, Elixir versions before v1.15 can also be installed using the deprecated [Online Elixir Installer](https://github.com/elixir-lang/elixir-windows-setup/releases/tag/v2.4).

```shell
# Get avaliable version
vfox search elixir

# install an specific version
vfox use elixir@1.16.2-elixir-otp-26
```
1 change: 1 addition & 0 deletions lib/elixir_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function elixir_utils.windows_install_exe(version)
end

-- Install exe
-- FIXME: ..\\.. path
local install_cmd = installer .. " -Wait -PassThru" .. " /S /D=" .. RUNTIME.pluginDirPath .. "\\..\\..\\cache\\elixir\\v-" .. version .. "\\elixir-" .. version
print("install cmd: " .. install_cmd)
local status = os.execute(install_cmd)
Expand Down

0 comments on commit 1b0323b

Please sign in to comment.