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

Mention winget as an installation option #2451

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,23 @@ jobs:
with:
store_login: ${{ secrets.SNAPCRAFT_TOKEN }}
snap: ${{ steps.snapcraft.outputs.snap }}

winget:
# based on https://github.com/microsoft/PowerToys/blob/main/.github/workflows/package-submissions.yml
runs-on: windows-latest
steps:
- name: Submit Neovide.Neovide package to Windows Package Manager Community Repository
run: |

$wingetPackage = "Neovide.Neovide"
$ghToken = "${{ secrets.NV_WINGET }}"

$github = Invoke-RestMethod -uri "https://api.github.com/repos/neovide/neovide/releases"

$targetRelease = $github | Select -First 1
$installerUrl = $targetRelease | Select -ExpandProperty assets -First 1 | Where-Object -Property name -match 'neovide.msi' | Select -ExpandProperty browser_download_url
$ver = $targetRelease.tag_name

# getting latest wingetcreate file
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
.\wingetcreate.exe update $wingetPackage -s -v $ver -u "$installerUrl" -t $ghToken
7 changes: 7 additions & 0 deletions website/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ The binaries are to be found on

## Windows

### WinGet
Neovide is available on [WinGet](https://learn.microsoft.com/en-us/windows/package-manager/).
It can be installed from the command line:
```sh
winget install Neovide.Neovide
```

### Scoop

[Scoop](https://scoop.sh/) has Neovide in the `extras` bucket. Ensure you have the `extras` bucket,
Expand Down