This commit is contained in:
Lin Yu-Chieh (Victor) 2024-12-18 11:35:32 +08:00
parent 3c17b310da
commit 82858759f3
5 changed files with 21 additions and 20 deletions

14
.github/README.md vendored
View File

@ -6,7 +6,7 @@
[![GitHub release (release name instead of tag name)](https://img.shields.io/github/v/release/lin-ycv/everythingpowertoys?style=flat-square)](https://github.com/lin-ycv/EverythingPowerToys/releases/latest)
[![GitHub all releases](https://img.shields.io/github/downloads/lin-ycv/EverythingPowerToys/total?style=flat-square)](https://github.com/lin-ycv/EverythingPowerToys/releases/)
[![GitHub release (latest by date)](https://img.shields.io/github/downloads/lin-ycv/everythingpowertoys/latest/total?style=flat-square)](https://github.com/lin-ycv/EverythingPowerToys/releases/latest)<br>
[![Winget version](https://img.shields.io/badge/dynamic/xml?label=Winget&prefix=v&query=%2F%2Ftr%5B%40id%3D%27winget%27%5D%2Ftd%5B3%5D%2Fspan%2Fa&url=https%3A%2F%2Frepology.org%2Fproject%2Feverythingpowertoys%2Fversions&color=orange&style=flat-square)](https://github.com/microsoft/winget-pkgs/tree/master/manifests/l/lin-ycv/EverythingPowerToys)
[![Winget (Deprecated)](https://img.shields.io/badge/dynamic/xml?label=Winget%20%28Deprecated%29&prefix=v&query=%2F%2Ftr%5B%40id%3D%27winget%27%5D%2Ftd%5B3%5D%2Fspan%2Fa&url=https%3A%2F%2Frepology.org%2Fproject%2Feverythingpowertoys%2Fversions&color=orange&style=flat-square)](https://github.com/microsoft/winget-pkgs/tree/master/manifests/l/lin-ycv/EverythingPowerToys)
[![Chocolatey version](https://img.shields.io/chocolatey/v/everythingpowertoys?style=flat-square)](https://community.chocolatey.org/packages/everythingpowertoys)
[![Scoop version](https://img.shields.io/scoop/v/everything-powertoys?bucket=extras&color=orange&style=flat-square)](https://scoop.sh/#/apps?q=everything-powertoys)
@ -16,12 +16,12 @@ EverythingPowerToys (EPT) is a plugin for the program [PowerToys Run (PTR)](http
This adds the ability to search the computer for files and folders using [Everything](https://www.voidtools.com/) inside PTR
#### Install instructions
There are 5 different methods of installation, chose the one you prefer:
1) WinGet
2) Chocolatey
3) Scoop
4) Self-Extraction Installer (EXE)
5) Manual Installation (ZIP)
There are 4 different methods of installation, chose the one you prefer:
1) Chocolatey
2) Scoop
3) Self-Extraction Installer (EXE)
4) Manual Installation (ZIP)
5) ~~WinGet~~ (Deprecated)
Detailed explanations and instructions are on the [wiki page](https://github.com/lin-ycv/EverythingPowerToys/wiki)

View File

@ -45,15 +45,15 @@ jobs:
choco push everythingpowertoys.$ver.nupkg --source https://push.chocolatey.org/
# winget
$wingetPackage = "lin-ycv.EverythingPowerToys"
echo $wingetPackage $ver $exe $exehash $exeARM $exeARMhash
rm -Path .\* -Recurse -Force
git clone -b winget https://github.com/lin-ycv/EverythingPowerToys.git --depth 1
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
cd .\EverythingPowerToys
rm .git -Recurse -Force -Confirm:$false
Get-ChildItem *.* -Recurse | ForEach { (Get-Content $_) | ForEach {$_ -Replace '_VERSION_', $ver} | ForEach {$_ -Replace '_URL_', $exe} | ForEach {$_ -Replace '_CRC_', $exehash} | ForEach {$_ -Replace '_armURL_', $exeARM} | ForEach {$_ -Replace '_armCRC_', $exeARMhash} | Set-Content $_ }
..\wingetcreate submit -p "New version: lin-ycv.EverythingPowerToys version $ver" -t ${{ secrets.EVERYTHINGPT }} .
# $wingetPackage = "lin-ycv.EverythingPowerToys"
# echo $wingetPackage $ver $exe $exehash $exeARM $exeARMhash
# rm -Path .\* -Recurse -Force
# git clone -b winget https://github.com/lin-ycv/EverythingPowerToys.git --depth 1
# Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
# cd .\EverythingPowerToys
# rm .git -Recurse -Force -Confirm:$false
# Get-ChildItem *.* -Recurse | ForEach { (Get-Content $_) | ForEach {$_ -Replace '_VERSION_', $ver} | ForEach {$_ -Replace '_URL_', $exe} | ForEach {$_ -Replace '_CRC_', $exehash} | ForEach {$_ -Replace '_armURL_', $exeARM} | ForEach {$_ -Replace '_armCRC_', $exeARMhash} | Set-Content $_ }
# ..\wingetcreate submit -p "New version: lin-ycv.EverythingPowerToys version $ver" -t ${{ secrets.EVERYTHINGPT }} .
# scoop
# cd ..

View File

@ -54,11 +54,11 @@ namespace Community.PowerToys.Run.Plugin.Everything
}
#endif
string orgqry = query;
if (!string.IsNullOrEmpty(setting.Prefix))
query = setting.Prefix + query;
string orgqry = query;
if (setting.EnvVar && orgqry.Contains('%'))
{
query = Environment.ExpandEnvironmentVariables(query).Replace(';', '|');
@ -142,6 +142,7 @@ namespace Community.PowerToys.Run.Plugin.Everything
Log.Warn($"Result {i} is null for {name} and/or {path}, query: {query}", GetType());
continue;
}
string fullPath = Path.Combine(path, name);
#if DEBUG
if (setting.Log > LogLevel.None)

View File

@ -38,7 +38,7 @@ namespace Community.PowerToys.Run.Plugin.Everything
DisplayLabel = Resources.Sort,
DisplayDescription = Resources.Sort_Description,
PluginOptionType = PluginAdditionalOption.AdditionalOptionType.Combobox,
ComboBoxItems = Enum.GetValues(typeof(Sort)).Cast<int>().Select(v => new KeyValuePair<string, string>(((Sort)v).ToString(), v + string.Empty)).ToList(),
ComboBoxItems = Enum.GetValues<Sort>().Cast<int>().Select(v => new KeyValuePair<string, string>(((Sort)v).ToString(), v + string.Empty)).ToList(),
ComboBoxValue = (int)_setting.Sort,
},
new()

View File

@ -4,7 +4,7 @@
"IsGlobal": true,
"Name": "Everything",
"Author": "Yu Chieh (Victor) Lin",
"Version": "0.86.0",
"Version": "0.87.0",
"Language": "csharp",
"Website": "https://github.com/Lin-ycv/EverythingPowerToys",
"ExecuteFileName": "Community.PowerToys.Run.Plugin.Everything.dll",