Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Winget and Scoop support #37

Closed
azinsharaf opened this issue Mar 13, 2024 · 24 comments
Closed

[Feature Request] Winget and Scoop support #37

azinsharaf opened this issue Mar 13, 2024 · 24 comments
Labels
help wanted Extra attention is needed type: chore Changes to build, configs, and dependencies

Comments

@azinsharaf
Copy link

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

@lars-berger lars-berger changed the title windows package managers Winget and Scoop support Mar 16, 2024
@lars-berger
Copy link
Member

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.

@azinsharaf
Copy link
Author

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

@lars-berger
Copy link
Member

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

@azinsharaf
Copy link
Author

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

@lars-berger
Copy link
Member

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.

@melMass
Copy link

melMass commented Mar 18, 2024

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.

@lars-berger
Copy link
Member

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 tauri-apps/tauri#3048

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

@azinsharaf
Copy link
Author

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.

@melMass
Copy link

melMass commented Mar 19, 2024

Apparently packaging a Tauri app as a portable .exe is possible but not really ideal tauri-apps/tauri#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

@azinsharaf
Copy link
Author

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.

melMass added a commit to melMass/scoop-mtb that referenced this issue Mar 20, 2024
@melMass
Copy link

melMass commented Mar 20, 2024

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

@akthe-at
Copy link

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

@melMass
Copy link

melMass commented Jul 23, 2024

@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
Copy link

melMass commented Jul 23, 2024

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

@akthe-at
Copy link

Thank you for doing that @melMass much appreciated!

@lars-berger
Copy link
Member

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 🙏

melMass added a commit to melMass/scoop-mtb that referenced this issue Jul 28, 2024
@melMass
Copy link

melMass commented Jul 28, 2024

Thanks for the heads up: melMass/scoop-mtb@e6882b1

@lars-berger lars-berger added the type: chore Changes to build, configs, and dependencies label Aug 10, 2024
@lars-berger lars-berger changed the title Winget and Scoop support [Feature Request] Winget and Scoop support Aug 11, 2024
@lars-berger lars-berger added help wanted Extra attention is needed state: available and removed state: available labels Aug 11, 2024
@felipecrp
Copy link

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

What about creating a PR to the scoop extras bucket?

Regards,

@melMass
Copy link

melMass commented Sep 11, 2024

What about creating a PR to the scoop extras bucket?

Yes, I will check the process!

@melMass
Copy link

melMass commented Sep 14, 2024

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

@michidk
Copy link

michidk commented Sep 17, 2024

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

@felipecrp
Copy link

felipecrp commented Sep 17, 2024

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

@melMass, I just created the issue.

@felipecrp
Copy link

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

ScoopInstaller/Extras#14041

@lars-berger
Copy link
Member

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 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed type: chore Changes to build, configs, and dependencies
Projects
Archived in project
Development

No branches or pull requests

6 participants