cli icon indicating copy to clipboard operation
cli copied to clipboard

Add program to winget package manager

Open LBlend opened this issue 4 years ago • 8 comments

Since you already support 3rd party package managers like Scoop and Chocolatey you should add it to the winget repo as well.

https://github.com/microsoft/winget-pkgs

LBlend avatar May 31 '21 03:05 LBlend

I think as of yet, since there isn't (there doesn't seem to be) any zip support, this will have to wait, until either Spicetify either uses a .exe silent installer (perhaps like a self extracting archive) or winget allows unzipping to install an app.

wingetcreate certainly doesn't support it yet and there is an ongoing issue regarding this on the winget-cli repo: https://github.com/microsoft/winget-cli/issues/140 image

PrabhieG avatar Jun 03 '21 02:06 PrabhieG

we could make a tiny exe that runs the ps1 line, but the problem from there is that spiceify can update itself from the cli, and winget installs stuff to either appdata or program files, so I see no reason to use winget to install this due to the fact that the ps1 installs it wherever you want with no hastle.

CryoTheRenegade avatar Jun 14 '21 02:06 CryoTheRenegade

@CryoRenegade You make a fair point but using winget would be easier to install Spicetify using simply winget install spicetify over the full command from the README. I know I am lazy, but say for example when changing computers or installing on multiple, using just winget could be a little more streamlined (as is supposedly intended by the devs of winget I guess).

PrabhieG avatar Jun 15 '21 06:06 PrabhieG

Fair... But Ctrl+C, Ctrl+V seems easier than winget install spicetify-cli plus the extra editions for the community themes that need to be downloaded

CryoTheRenegade avatar Jun 15 '21 06:06 CryoTheRenegade

You could say the same thing about it being available choco and scoop though. You could just copy-paste the powershell script url and go on about your day. The benefit though is that you would only need one package manager that can update all the programs on your computer in batch, including spicetify. There won't be need to have multiple package managers or manually updating spicetify.

But yeah I see your point and if it's an hassle to make it compatible then there's no need to do it.

LBlend avatar Jun 15 '21 09:06 LBlend

One other idea, I don't know if this is possible in Go though, is to have a string with the binary copy of the spicetify zip and have the .exe install it from there.

Ixyk-Wolf avatar Jun 24 '21 00:06 Ixyk-Wolf

https://adamtheautomator.com/ps1-to-exe/

The first one, ps2exe. Seems like it can do the trick. When releasing spicetify versions they just need to run a simple command.

saxobroko avatar Jul 11 '21 07:07 saxobroko

That would be the best option if khanas were to add this tool to winget

On Sun, Jul 11, 2021, 1:36 AM Saxo_Broko @.***> wrote:

https://adamtheautomator.com/ps1-to-exe/

The first one, ps2exe. Seems like it can do the trick. When releasing spicetify versions they just need to run a simple command.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/khanhas/spicetify-cli/issues/708#issuecomment-877755677, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFPYQ5T2XNTIUF6G7ICOZN3TXFCWPANCNFSM452A6LVQ .

CryoTheRenegade avatar Jul 11 '21 19:07 CryoTheRenegade

Winget 1.4 has just been released, supporting zip installations. I have already created a PR for Spicetify to winget-pkgs:

  • https://github.com/microsoft/winget-pkgs/pull/94750

Afterwards, the Winget Releaser workflow would have to be set up in this repo for automatic package updates.

sitiom avatar Jan 27 '23 00:01 sitiom

Seems like spicetify is in winget now! Thanks @sitiom. We'll add CI to update it automatically very soon image

rxri avatar Feb 03 '23 17:02 rxri

https://github.com/vedantmgoyal2009/winget-releaser/issues/82 would have to be resolved first for Winget Releaser.

sitiom avatar Feb 03 '23 17:02 sitiom