-
Notifications
You must be signed in to change notification settings - Fork 504
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
Package for winget
#1374
Comments
Neovide already uses About actually using releases, I think we should not replace the standalone executable, but rather release both the installer and standalone executable in split artifacts. Some users are unable to install programs persistently, but are allowed to execute binaries. About packaging Neovide for |
I didn't know about I have a Windows machine, and happy to investigate some of the build issues with Windows you discussed. I agree that both the installer and executable for Windows should be released, which is what I think it is up to the maintainers of |
Please do. cargo bundle does not currently support Windows targets. It supports Mac, and has some support for .deb files. A few people started work on this, but nothing was finished. See crates
There may be enough pieces there to do most of the job. Windows install files, .msi or .msix, are rather arcane and need someone who lives in the Windows ecosystem, which I do not. The intent of cargo bundle is to handle the common cases easily and allow cross-platform builds. You add a few lines to the Cargo.toml file to guide the bundling process, but don't have to write all the XML stuff Windows installers want. Write once, run everywhere. (Cross-compiling GUI programs to Windows works surprisingly well. Here's my demo. All that's needed is install, uninstall, and maybe upgrade/reinstall. More than that on Windows and you probably need Windows-specific tooling. |
I have done a bit of research into other Rust projects and https://github.com/alacritty/alacritty |
I have had a look into this tonight, and with You can download and try the MSI: https://github.com/scottwillmoore/neovide/actions/runs/3113998046. Would the contributors be interested in merging this in? I'll double check I am happy with everything over the weekend, maybe squash my commits and then submit it as a pull request. |
As long as someone can confirm this to be working on their setup, yeah, definitely! Thanks for your work! By the way, no need to squash your commits. We squash them when merging anyways, and not squashing in the PR allows "looking into" the actual history should it ever be relevant. |
(also, by the way: please do create another branch than |
Would it be possible to publish another release with the |
Would it be possible to make the MSI not require elevated rights to make a user installation possible? |
@scottwillmoore, the 0.11.0 release does not zip the MSI anymore. |
@sschneider-ihre-pvs: I'm not sure, but you could check out the Wix configuration and you may be able to adjust it such that user installation does work. @fredizzimo: I think an update to At the moment I don't use Neovim or Neovide 😢, so I'll defer these issues to other users in the community. |
I added some comments on the package PR on the winget github microsoft/winget-pkgs#96805. On Neovide's side we need fix the runtimes https://volks73.github.io/cargo-wix/cargo_wix/index.html#c-runtime |
Just want to point out that there are two PRs in the |
The package has not been updated since it was merged in 0.10.4. What should we do?
|
Sure, @fredizzimo I can do maintain the same |
Thank you @sarvex. I recommend that watch the release notifications https://github.blog/changelog/2018-11-27-watch-releases/, so that you don't miss them. I assume you will have to make a new PR to winget for each new release? |
It would be nice to be able to install the latest stable release of
neovide
viawinget
. Aswinget
is developed by Microsoft, I expect with time it will become the de facto package manager for Windows.In a soon to be released version (microsoft/winget-cli#182),
winget
will be able to install a standalone executable and add it to thePATH
. However, I don't believe this will support the start/search menu. This would requireneovide
to be published as an.exe
in releases. In future, it should be possible to extract the.exe
from a.zip
(microsoft/winget-cli#140), however I don't believe this will be available for a while yet.To achieve this at the moment, we would have to bundle
neovide
into an installer such as an.msi
which would be able to addneovide
to thePATH
add create a start menu shortcut. I think the easiest way to do this would be to usecargo-wix
to packageneovide
in the CI workflow.What are the everyone's thoughts? It could be quite a while before
winget
implement all the features required, I would be happy to investigate usingcargo-wix
as a solution.The text was updated successfully, but these errors were encountered: