TheThingsNetwork / lorawan-stack

The Things Stack, an Open Source LoRaWAN Network Server
https://www.thethingsindustries.com/stack/
Apache License 2.0
994 stars 309 forks source link

Add winget (Windows package manager) support for installing lorawan-stack-cli #4306

Open lnlp opened 3 years ago

lnlp commented 3 years ago

Summary

Please add support for Microsoft's official Windows CLI package manager winget for installing lorawan-stack-cli (ttn-lw-cli).

Why do we need this?

So Windows 10 users can simply install the TTN CLI tools with: winget install ttn-lw-cli

Similar to how macOS and Linux users can currently install it via their package managers.

The macOS and Linux package managers are already supported so importance of package managers does not need further explanation (neither does the Windows 10 operating system with its 1.3+ billion users).

Until recent there was no official package manager for Windows but now Microsoft has released the Windows CLI package manager winget.

winget is currently at version v1.0.11451. It needs to be manually installed but will be added standard to Windows in a near future Windows update. For more information see:

What is already there? What do you see now?

Unlike for macOS and Linux the winget package manager for Windows is currently not yet supported.

What is missing? What do you want to see?

Support for the winget package manager to install the lorawan-stack-cli (ttn-lw-cli).

Environment

Windows 10.

How do you propose to implement this?

Information about the Windows Package Manager Community Repository and how to create a package can be found here:

How do you propose to test this?

Needs no further explanation.

Can you do this yourself and submit a Pull Request?

No.

johanstokking commented 3 years ago

Thanks @lnlp !

neoaggelos commented 3 years ago

Currently, winget requires an installer, which we do not have for Windows builds. There is an ongoing discussion to support installing from .zip natively with winget in this issue, along with recent activity.

Alternatively:

In general, I do like the idea of having winget install ttn-lw-cli, but it is currently not as straightforward as declaring a YAML manifest. My suggestion would be to wait until Winget adds support for installing from .zip files.

If this takes a long time, and people from the community want this sooner, then we can prioritize this and see what the best way would be to create a simple installer for ttn-lw-cli.

In short, this issue is currently blocked. If you are part of the community and would like ttn-lw-cli to get winget support sooner, please upvote this issue.