cli-lab icon indicating copy to clipboard operation
cli-lab copied to clipboard

MacOS installer

Open simonech opened this issue 4 years ago • 9 comments

Now the installation for macOS is manual, and the instruction make you install the tool in the root of your profile. Maybe having a proper installer would be a good idea. Or as dotnet global tool?

simonech avatar Mar 11 '20 10:03 simonech

This should definitely use the dotnet tool install cli syntax. Or at least tell people where to put global tools in the instructions.

OS Path
Linux/macOS. $HOME/.dotnet/tools.
Windows %USERPROFILE%.dotnet\tools.

from the docs

steveoh avatar Mar 11 '20 15:03 steveoh

Thanks for your feedback! Please see the note in our README on why this tool cannot be a dotnet global tool. As for a mac installer, this would definitely be a great enhancement for future iterations.

sfoslund avatar Mar 11 '20 18:03 sfoslund

@sfoslund yah that is an interesting problem i was not thinking of.

I would assume that could be guarded against? Like you don't allow uninstalling a runtime that is running the tool?

dotnet uninstall

would produce a list of items with the current runtime a different color to indicate it cannot be removed?

steveoh avatar Mar 11 '20 18:03 steveoh

I think for now this should be put in homebrew cask?

akshaybabloo avatar Mar 11 '20 20:03 akshaybabloo

Looping in @wli3

@steveoh it sounds like that would be a solution, but we don't have any plans to take that work on at the moment.

sfoslund avatar Mar 11 '20 21:03 sfoslund

It is possible to add an install for mac. On Windows, only installer should touch your Program Files folder, that's why we need to have an Windows installer.

dotnet tool install does not support RID (platform) specific packages. So it is not easy to add in short term.

For homebrew. Like other dotnet core packages, we encourage the community to maintain. Since it is not trivial to support an another delivery mechanism

wli3 avatar Mar 11 '20 23:03 wli3

@akshaybabloo it would be a "simple" formula, not a 'cask", since this is a CLI tool, not something with a GUI

simonech avatar Mar 12 '20 08:03 simonech

@simonech or that

akshaybabloo avatar Mar 12 '20 08:03 akshaybabloo

Still on this topic... the documentation on docs.microsoft.com says

The tool requires elevation to uninstall .NET Core SDKs and runtimes. Therefore, it should be installed in a write-protected directory such as C:\Program Files on Windows or /usr/local/bin on macOS.

While the instructions in the release page on Github makes you copy the file in the ~/ folder, which is the home folder of the user.

Not sure which is the correct one, but they should be consistent.

simonech avatar Mar 12 '20 22:03 simonech