From f0f8d1972081e9aa6fde4d29968bb641687d371c Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 30 Dec 2023 16:07:13 +0100 Subject: [PATCH 1/3] Updated RunPlugin pathing --- Community.PowerToys.Run.Plugin.Winget.csproj | 4 ++-- README.md | 2 +- installer.ps1 | 2 +- release.ps1 | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Community.PowerToys.Run.Plugin.Winget.csproj b/Community.PowerToys.Run.Plugin.Winget.csproj index 16fe5f1..3ab41eb 100644 --- a/Community.PowerToys.Run.Plugin.Winget.csproj +++ b/Community.PowerToys.Run.Plugin.Winget.csproj @@ -2,7 +2,7 @@ - net7.0-windows + net8.0-windows {46778CB7-A2FD-4949-A845-B19EF1A6364B} Properties Community.PowerToys.Run.Plugin.Winget @@ -12,7 +12,7 @@ false false true - ..\..\..\..\..\$(Platform)\$(Configuration)\modules\launcher\Plugins\Winget\ + ..\..\..\..\..\$(Platform)\$(Configuration)\RunPlugins\Winget\ diff --git a/README.md b/README.md index 1b1a6be..5d9773a 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This is a plugin for [PowerToys Run](https://github.com/microsoft/PowerToys/wiki ## Installation 1. Download the latest release of the Winget Plugin from the [releases page](https://github.com/bostrot/PowerToysRunPluginWinget/releases). -2. Extract the zip file's contents to your PowerToys modules directory (usually `C:\Program Files\PowerToys\RunPlugins`). +2. Extract the zip file's contents to your PowerToys modules directory (usually `%LOCALAPPDATA%\PowerToys\RunPlugins`). 3. Restart PowerToys. ## Usage diff --git a/installer.ps1 b/installer.ps1 index 39624f5..28e3d2a 100644 --- a/installer.ps1 +++ b/installer.ps1 @@ -1,7 +1,7 @@ # PowerShell script that downloads latest release from GitHub and installs it to PowerToys Run plugin folder # Usage: .\installer.ps1 -$installLocation = "C:\Program Files\PowerToys\modules\launcher\Plugins\Winget" +$installLocation = "%LOCALAPPDATA%\PowerToys\RunPlugins\Winget" # Get latest release from GitHub $latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/bostrot/PowerToysRunPluginWinget/releases/latest" diff --git a/release.ps1 b/release.ps1 index 5762ed8..3f6ad7d 100644 --- a/release.ps1 +++ b/release.ps1 @@ -1,9 +1,9 @@ # Script for copying the release files and creating the release zip file -# C:\Users\erict\Sync\Projects\PowerToys\x64\Release\modules\launcher\Plugins\Winget -$version = "1.2.2" +# C:\Users\erict\PowerToys-dev\x64\Release\RunPlugins\Winget +$version = "1.2.3" $release = "C:\Users\erict\Downloads\winget-powertoys-$version.zip" $zip = "C:\Program Files\7-Zip\7z.exe" -$path = "C:\Users\erict\Sync\Projects\PowerToys\x64\Release\modules\launcher\Plugins\Winget" +$path = "C:\Users\erict\PowerToys-dev\x64\Release\RunPlugins\Winget" # pack the files from path and excluding &$zip a -aoa -bb0 -bso0 -xr!PowerToys* -xr!Backup* -xr!Ijwhost* -tzip $release $path From 452ae7f988b46a3f4a3b02a7c8b2cb970982024d Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 30 Dec 2023 16:07:34 +0100 Subject: [PATCH 2/3] Return empty list instead of throwing exception --- Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Main.cs b/Main.cs index d113bc3..9376a97 100644 --- a/Main.cs +++ b/Main.cs @@ -125,7 +125,7 @@ public List Query(Query query) { if (query is null) { - throw new ArgumentNullException(nameof(query)); + return new List(); } var results = new List(); From 50fe8ab0e0595575303d9650bfd76c87ad14421d Mon Sep 17 00:00:00 2001 From: CaptN <18724661+captn-d@users.noreply.github.com> Date: Sun, 14 Jan 2024 21:28:54 +0100 Subject: [PATCH 3/3] Fix PowerToys Run plugins folder path %LOCALAPPDATA%\PowerToys\RunPlugins is incorrect, correct path is %LOCALAPPDATA%\Microsoft\PowerToys\RunPlugins --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d9773a..e79535d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This is a plugin for [PowerToys Run](https://github.com/microsoft/PowerToys/wiki ## Installation 1. Download the latest release of the Winget Plugin from the [releases page](https://github.com/bostrot/PowerToysRunPluginWinget/releases). -2. Extract the zip file's contents to your PowerToys modules directory (usually `%LOCALAPPDATA%\PowerToys\RunPlugins`). +2. Extract the zip file's contents to your PowerToys modules directory (usually `%LOCALAPPDATA%\Microsoft\PowerToys\RunPlugins`). 3. Restart PowerToys. ## Usage