zebar icon indicating copy to clipboard operation
zebar copied to clipboard

[Feature Request] Winget and Scoop support

Open azinsharaf opened this issue 11 months ago β€’ 17 comments

hi, is there any plan to make the new releases available in winget, scoop or choco?

azinsharaf avatar Mar 13 '24 03:03 azinsharaf

Yes, would like to get Zebar added to Winget and Scoop at some point. From what I can remember, they have some star requirements so not sure whether we're eligible currently.

lars-berger avatar Mar 16 '24 11:03 lars-berger

ok. currently the setup file needs admin access. can it be changed so it can be installed without admin access?

azinsharaf avatar Mar 16 '24 13:03 azinsharaf

I believe it needs elevation just to save to C:\Program Files\. It could be changed to not save to C:\Program Files\, but that’s the most standard install location on Windows

lars-berger avatar Mar 16 '24 19:03 lars-berger

even with changing it to home folder, it says it needs admin privilege.

azinsharaf avatar Mar 16 '24 19:03 azinsharaf

Hm yeah, I'm seeing the same. We're running a custom Wix template - I tried just now to change it to the default Tauri one and encountering the same behavior where elevation is needed for the home folder. A bit surprising since there's surely a lot of Tauri apps on Scoop.

lars-berger avatar Mar 17 '24 07:03 lars-berger

I came to ask the same (scoop), that would be great, along the same lines a portable version would be nice: publishing the exe like you do for Glaze.

melMass avatar Mar 18 '24 01:03 melMass

I came to ask the same (scoop), that would be great, along the same lines a portable version would be nice: publishing the exe like you do for Glaze.

Apparently packaging a Tauri app as a portable .exe is possible but not really ideal https://github.com/tauri-apps/tauri/discussions/3048

Does scoop/winget disallow .msi's that require elevation? Trying to find some relevant docs for this @azinsharaf

lars-berger avatar Mar 18 '24 16:03 lars-berger

i use a portable version of scoop that allows to install the apps in the home folder without admin right. winget needs admin right since i haven't found a portable winget version.

azinsharaf avatar Mar 18 '24 17:03 azinsharaf

Apparently packaging a Tauri app as a portable .exe is possible but not really ideal https://github.com/tauri-apps/tauri/discussions/3048

It makes sense, I'm going to ask on the Tauri board about the current status of things about this and scoop msi extraction mechanism and report here

i use a portable version of scoop that allows to install the apps in the home folder without admin right.

That's how scoop works by default

melMass avatar Mar 19 '24 16:03 melMass

i use a portable version of scoop that allows to install the apps in the home folder without admin right.

That's how scoop works by default

that is true. i meant choco portable.

azinsharaf avatar Mar 19 '24 18:03 azinsharaf

I think in the case of zebar just extracting the binary seems to work. I made a very basic recipe for scoop here: zebar.json

And this is the tree it installs (in ~/scoop/apps):

I made this quickly but I think wrapping the shims by the bat zebar provides is possible

melMass avatar Mar 20 '24 21:03 melMass

@melMass will your bot update your scoop bucket for the latest release or would you have to do that manually?

akthe-at avatar Jul 23 '24 13:07 akthe-at

@melMass will your bot update your scoop bucket for the latest release or would you have to do that manually?

Yep thanks to this line: https://github.com/melMass/scoop-mtb/blob/1115cb8e7d39a073d3dc40e5d24bcfed24c22021/bucket/zebar.json#L29

BUT (thanks for the notice) they changed the "naming convention" in 1.4.0 so it did not pick it up, I will fix it later today

melMass avatar Jul 23 '24 13:07 melMass

Updated, it should work fine and update properly given the layout/naming convention doesn't change.

melMass avatar Jul 23 '24 13:07 melMass

Thank you for doing that @melMass much appreciated!

akthe-at avatar Jul 24 '24 03:07 akthe-at

Updated, it should work fine and update properly given the layout/naming convention doesn't change.

Sorry to say but just updated the naming convention once more πŸ˜… GitHub alphabetically ordered the assets so the x64 Windows download was listed way at the bottom, which I think was causing some people to mistakenly download the arm64 version.

The new asset names are:

zebar-<VERSION>-opt1-x64.msi
zebar-<VERSION>-opt2-arm64.msi
zebar-<VERSION>-opt3.dmg
zebar-<VERSION>-opt4-x64.deb
zebar-<VERSION>-opt5-x64.AppImage

Thanks for cooking up a scoop config @melMass πŸ™

lars-berger avatar Jul 27 '24 19:07 lars-berger

Thanks for the heads up: https://github.com/melMass/scoop-mtb/commit/e6882b1aef175a1c8d22c62be22ed09a99b2a538

melMass avatar Jul 28 '24 01:07 melMass

@melMass I tested the zebar.json and it worked. Nice job.

What about creating a PR to the scoop extras bucket?

Regards,

felipecrp avatar Sep 11 '24 17:09 felipecrp

What about creating a PR to the scoop extras bucket?

Yes, I will check the process!

melMass avatar Sep 11 '24 20:09 melMass

@felipecrp please open an issue/feature request on Extras that I will reference in the PR

melMass avatar Sep 14 '24 04:09 melMass

zebar is now available on winget: https://github.com/microsoft/winget-pkgs/tree/master/manifests/g/glzr-io/zebar/1.8.1

michidk avatar Sep 17 '24 15:09 michidk

@felipecrp please open an issue/feature request on Extras that I will reference in the PR

@melMass, I just created the issue.

felipecrp avatar Sep 17 '24 16:09 felipecrp

The scoop pull request was created and merged. Thus, this issue can be closed.

https://github.com/ScoopInstaller/Extras/issues/14041

felipecrp avatar Oct 04 '24 11:10 felipecrp

The scoop pull request was created and merged. Thus, this issue can be closed.

ScoopInstaller/Extras#14041

Ay that's sick!! Y'all are awesome @michidk, @felipecrp and @melMass πŸ™

lars-berger avatar Oct 04 '24 20:10 lars-berger