version-fox / vfox-elixir

Elixir vfox plugin. Use the vfox to manage multiple Elixir versions in Linux/Darwin MacOS/Windows. all platform~
Apache License 2.0
7 stars 1 forks source link

Add support for Windows #8

Closed mardukbp closed 2 months ago

mardukbp commented 2 months ago

vfox is a cross-platform SDK manager. Therefore, it is expected that the plugins also work on all platforms.

Moreover, it would be great to be able to install Elixir (and Erlang) without a graphical installer, since the graphical installer for Windows requires admin rights. Since most people at universities and enterprises have no admin rights, they cannot use Elixir.

yeshan333 commented 2 months ago

I have already do some work in this pull request, but still need to test it. There are still some problems at present.

mardukbp commented 2 months ago

Awesome! I saw that you install Erlang and Elixir by executing the .exe installers. Like I said they require admin rights. I already opened an issue on the Erlang OTP repo hoping that they will create an installer that doesn't need admin rights. AFAIK it requires admin rights because it executes the installer for Microsoft Visual C++ Redistributable in order to install vcruntime140.dll. But this DLL can be shipped with the installer, like Python does. It is present in the Windows 2022 GH image.

yeshan333 commented 2 months ago

I have released a new plugin version v0.4.0 to support this. You can have a try~. @mardukbp

Note:

mardukbp commented 2 months ago

It works! But, I noticed that the elixir-plugin does not know that Elixir depends on Erlang. Therefore one has to install Erlang by hand. Does vfox support dependencies on other plugins?

yeshan333 commented 2 months ago

Yes, you must clear to know whether the Erlang version that the Elixir version you want to install depends on is already installed. Best used in combination with the vfox-erlang plugin.

Maybe, it will not be a problem to use it with hands-on installation Erlang, but I have not tested this scenario.

Vfox should not support interdependence between plug-ins at present.

mardukbp commented 2 months ago

Yeah, with vfox-erlang it's a breeze. I like that vfox is fast and intuitive. Thank you for all your efforts!