warp icon indicating copy to clipboard operation
warp copied to clipboard

Distribute as global package

Open dazinator opened this issue 5 years ago • 6 comments

Hi, this looks fantastic.

Please consider publishing warp as:

  • chocolatey package
  • npm package
  • dotnet cli global tool

That way, it will be easier for some folks to obtain the tool and keep track of updates when you issue new versions. It will also automatically be put on the PATH if desired by the user!

dazinator avatar Oct 10 '18 06:10 dazinator

Considering the target for this, a dotnet cli global tool makes a ton of sense.

RichiCoder1 avatar Oct 10 '18 06:10 RichiCoder1

Some, hopefully helpful, resources:

https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools-how-to-create https://github.com/NuGet/Home/issues/6645

phrohdoh avatar Oct 10 '18 14:10 phrohdoh

Sounds like a good idea to have a dotnet CLI global tool. It could probably be just a simple wrapper on top of the existing warp-packer tool as it's portable enough.

dgiagio avatar Oct 10 '18 15:10 dgiagio

Just a heads up, warp was added to Scoop: https://github.com/lukesampson/scoop/pull/2669 :smiley:

Calinou avatar Oct 13 '18 17:10 Calinou

I created .NET CLI global tool, which is a wrapper around Warp and ILLink.Tasks for optional assembly stripping before packing, maybe someone would be interested: https://www.nuget.org/packages/dotnet-warp/

Hubert-Rybak avatar Jan 08 '19 12:01 Hubert-Rybak

I disagree with the dotnet core global tool idea. You could easily just distribute this using cargo. Dotnet global tools require you to have dotnet core installed to use them anyways, and it's just another step every time you want to release a new build of warp. If you use cargo, everyone can install it on all platforms with cargo install and it's the tool designed to be used for this specific purpose a lot of the time (rust program binaries). I would much rather prefer taking that route as opposed to having one package on tons of different package managers that are all out of sync.

Edit: another thing with dotnet global tools is that they are SLOW... It takes far longer to invoke them for some reason. Maybe that's only for tools that are actual CLR exes and not native exes though, so I could be wrong.

CoolOppo avatar Jan 21 '19 03:01 CoolOppo