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

Create windows installation package #710

Closed
vmiheer opened this issue Oct 23, 2020 · 8 comments · Fixed by #1656
Closed

Create windows installation package #710

vmiheer opened this issue Oct 23, 2020 · 8 comments · Fixed by #1656

Comments

@vmiheer
Copy link

vmiheer commented Oct 23, 2020

Winget doesn't seem to support direct copy-paste (download) of binary. Instead it seems to need some sort of package in format:
inno, wix, msi, nullsoft, zip, appx, msix and exe.

@vmiheer
Copy link
Author

vmiheer commented Oct 23, 2020

Or we can wait for microsoft/winget-cli#140

@casey
Copy link
Owner

casey commented Oct 23, 2020

Thanks for creating this issue! I think it's useful to track creating a windows installer. Do you happen to know which type of installer is easiest to create?

Ideally one that can be used on GitHub Actions to create an installer from a text manifest that can be committed to the repo.

@vmiheer
Copy link
Author

vmiheer commented Oct 24, 2020

I have never worked with creating installer. :)

@casey
Copy link
Owner

casey commented Oct 24, 2020

Fair enough! I think wix is maybe the best option, but I don't know for sure.

@michidk
Copy link
Contributor

michidk commented Jun 12, 2022

I have used Wix before, and it was not a really great experience to work with.
Sadly winget still doesn't support .zip files nor .ps1 scripts, but it seems like these features are in the pipeline.

The easiest way to implement a winget package right now would be to just upload the .exe to the GitHub releases since this is supported.

The other problem is that it seems difficult to maintain a winget package: You can't use a URL to the latest release, since you have to provide a hash of the file in the manifest. So you have to update the package for every new just version. But publishing a new version requires a PR in the winget-pkgs repo. For the chocolatey package I use GitHub actions to automatically publish new versions - we would need something similar as well to create the packages and PRs. Maybe there is already a solution for that?

So maybe we just wait until those problems are solved.

@kenden
Copy link
Contributor

kenden commented Jan 24, 2023

microsoft/winget-cli#140 is now implemented, so it's possible to simply use a .zip file now.

@casey
Copy link
Owner

casey commented Jan 25, 2023

microsoft/winget-cli#140 is now implemented, so it's possible to simply use a .zip file now.

Dope! If anyone knows what the command would be, let me know so I can include it in the readme.

@JakeOShannessy
Copy link

It looks like a manifest (which reference this zip file from this repo) has been added to the winget package repository. Therefore just can now be installed with:

winget install Casey.Just -e

@casey casey linked a pull request Aug 2, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants