bostrot / PowerToysRunPluginWinget

Winget plugin for PowerToys Run
MIT License
267 stars 15 forks source link
plugin powertoys powertoys-run powertoys-run-plugin winget winget-cli wingetui

Winget Plugin for PowerToys Run

This is a plugin for PowerToys Run that allows you to search and install packages from the Winget package manager.

image

Features

Installation

Use the installation script release.ps1:

.\release.ps1

Then restart PowerToys

Or manually:

  1. Download the latest release of the Winget Plugin from the releases page.
  2. Extract the zip file's contents to your PowerToys modules directory (usually %LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins).
  3. Restart PowerToys.

Usage

  1. Open PowerToys Run (default shortcut is Alt+Space).
  2. Type winget followed by your search query.
  3. Select a package from the search results and press Enter to install it.

Build

  1. Clone the PowerToys repo.
  2. cd into the PowerToys directory.
  3. Initialize the submodules: git submodule update --init --recursive
  4. Clone this repo into the PowerToys/src/modules/launcher/Plugins directory. (git clone https://github.com/bostrot/PowerToysRunPluginWinget PowerToys/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.Winget)
  5. Open the PowerToys.sln solution in Visual Studio.
  6. Add this project to the PowerToys.sln solution. (Right-click on the PowerToys solution in the Solution Explorer (under the path PowerToys/src/modules/launcher/Plugins) and select Add > Existing Project... and select the Community.PowerToys.Run.Plugin.Winget.csproj file.)
  7. Build the solution.
  8. Run the PowerToys project.

Contributing

Contributions are welcome! Please see our contributing guidelines for more information.

License

This project is licensed under the MIT License.

Create your own PowerToys Run Plugin

I wrote an article about that in my blog which might help you to get started: How to create a PowerToys Run plugin