From e6785dc9192b1c5de29eb46e89096343ac361c7f Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 28 Jul 2021 21:24:16 +1000 Subject: [PATCH 1/7] standardise flow installer- remove version from exe installer --- Scripts/post_build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1 index b573b984b..139880d27 100644 --- a/Scripts/post_build.ps1 +++ b/Scripts/post_build.ps1 @@ -89,7 +89,7 @@ function Pack-Squirrel-Installer ($path, $version, $output) { Move-Item $temp\* $output -Force Remove-Item $temp - $file = "$output\Flow-Launcher-v$version.exe" + $file = "$output\Flow-Launcher-Setup.exe" Write-Host "Filename: $file" Move-Item "$output\Setup.exe" $file -Force @@ -109,7 +109,7 @@ function Publish-Self-Contained ($p) { function Publish-Portable ($outputLocation, $version) { - & $outputLocation\Flow-Launcher-v$v.exe --silent | Out-Null + & $outputLocation\Flow-Launcher-Setup.exe --silent | Out-Null mkdir "$env:LocalAppData\FlowLauncher\app-$version\UserData" Compress-Archive -Path $env:LocalAppData\FlowLauncher -DestinationPath $outputLocation\Flow-Launcher-Portable.zip } From 15d677f397084f3d7e86b5719418db569edb9954 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 28 Jul 2021 21:24:50 +1000 Subject: [PATCH 2/7] update readme to use standard exe installer --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e89558d57..7f5c2e332 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Flow Launcher. Dedicated to make your workflow flow more seamlessly. Aimed at be ### Installation -| [Windows 7 and up installer](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest) | [Portable](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest/download/Flow-Launcher-Portable.zip) | `WinGet install "Flow Launcher"` | +| [Windows 7 and up installer](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest/download/Flow-Launcher-Setup.exe) | [Portable](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest/download/Flow-Launcher-Portable.zip) | `WinGet install "Flow Launcher"` | | --------------------------------- | --------------------------------- | --------------------------------- | Windows may complain about security due to code not being signed, this will be completed at a later stage. If you downloaded from this repo, you are good to continue the set up. From a8d7dcdacbb85a241d7274cd7213d47fcb576abb Mon Sep 17 00:00:00 2001 From: Jeremy Date: Thu, 29 Jul 2021 07:58:17 +1000 Subject: [PATCH 3/7] remove extra space --- Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs b/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs index 995ac0fed..db0814880 100644 --- a/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs +++ b/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs @@ -185,7 +185,6 @@ namespace Flow.Launcher.Plugin.PluginsManager var uninstallSearch = search.Replace(Settings.HotkeyUpdate, string.Empty).TrimStart(); - var resultsForUpdate = from existingPlugin in Context.API.GetAllPlugins() join pluginFromManifest in pluginsManifest.UserPlugins From b023e8e5029fa08cf6dc22d0e17a0f4c4504e4b0 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 29 Jul 2021 18:01:56 +1000 Subject: [PATCH 4/7] update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7f5c2e332..9fda057c0 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Flow Launcher. Dedicated to make your workflow flow more seamlessly. Aimed at be ### Installation -| [Windows 7 and up installer](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest/download/Flow-Launcher-Setup.exe) | [Portable](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest/download/Flow-Launcher-Portable.zip) | `WinGet install "Flow Launcher"` | +| [Windows 7+ installer](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest/download/Flow-Launcher-Setup.exe) | [Portable](https://github.com/Flow-Launcher/Flow.Launcher/releases/latest/download/Flow-Launcher-Portable.zip) | `WinGet install "Flow Launcher"` | | --------------------------------- | --------------------------------- | --------------------------------- | Windows may complain about security due to code not being signed, this will be completed at a later stage. If you downloaded from this repo, you are good to continue the set up. @@ -59,10 +59,10 @@ Windows may complain about security due to code not being signed, this will be c - Open context menu: on the selected result, press Ctrl+O/Shift+Enter. - Cancel/Return to previous screen: Esc. - Install/Uninstall/Update plugins: in the search window, type `pm` `install`/`uninstall`/`update` + the plugin name. -- Saved user settings are located: +- Type `flow user data` to open your saved user settings folder. They are located at: - If using roaming: `%APPDATA%\FlowLauncher` - If using portable, by default: `%localappdata%\FlowLauncher\app-\UserData` -- Logs are saved along with your user settings folder. +- Type `open log location` to open your logs folder, they are saved along with your user settings folder. [More tips](https://flow-launcher.github.io/docs/#/usage-tips) @@ -74,7 +74,7 @@ If you are using Python plugins, flow will prompt to either select the location Vist [here](https://flow-launcher.github.io/docs/#/plugins) for our plugin portfolio. -If you are keen to write your own plugin for flow, please take a look at our plugin development documentation for [C#](https://flow-launcher.github.io/docs/#/develop-csharp-plugins) or [Python](https://flow-launcher.github.io/docs/#/develop-py-plugins) +If you are keen to write your own plugin for flow, please take a look at our plugin development documentation for [C#](https://flow-launcher.github.io/docs/#/develop-dotnet-plugins) or [Python](https://flow-launcher.github.io/docs/#/develop-py-plugins) ## Questions/Suggestions From 8d0459075ff71b769359de47974b937dd8d198ea Mon Sep 17 00:00:00 2001 From: Jeremy Date: Thu, 29 Jul 2021 18:08:18 +1000 Subject: [PATCH 5/7] fix formatting --- Flow.Launcher/ViewModel/MainViewModel.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index ca6ffe845..6eee51bd8 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -108,9 +108,7 @@ namespace Flow.Launcher.ViewModel } Log.Error("MainViewModel", "Unexpected ResultViewUpdate ends"); - } - - ; + }; void continueAction(Task t) { From 9e21b2e831e0b7d6567d79939bcd475a7af6b30e Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Sat, 31 Jul 2021 13:59:27 +0800 Subject: [PATCH 6/7] include saving SearchPrecisionScore because it is not public before --- Flow.Launcher.Infrastructure/UserSettings/Settings.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs index e7e7902d4..ebef2c631 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs @@ -39,7 +39,8 @@ namespace Flow.Launcher.Infrastructure.UserSettings /// public bool ShouldUsePinyin { get; set; } = false; - internal SearchPrecisionScore QuerySearchPrecision { get; private set; } = SearchPrecisionScore.Regular; + [JsonInclude, JsonConverter(typeof(JsonStringEnumConverter))] + public SearchPrecisionScore QuerySearchPrecision { get; private set; } = SearchPrecisionScore.Regular; [JsonIgnore] public string QuerySearchPrecisionString From 6a1bb17fb699e9bd53ab0020016f35c2978af4ab Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Thu, 5 Aug 2021 14:31:03 +0800 Subject: [PATCH 7/7] use < instead of != --- Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs b/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs index abce8b41e..fd2464f2e 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs @@ -18,7 +18,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings // TODO: Remove. This is backwards compatibility for 1.8.0 release. // Introduced two new action keywords in Explorer, so need to update plugin setting in the UserData folder. - if (metadata.ID == "572be03c74c642baae319fc283e561a8" && metadata.ActionKeywords.Count != settings.ActionKeywords.Count) + if (metadata.ID == "572be03c74c642baae319fc283e561a8" && metadata.ActionKeywords.Count > settings.ActionKeywords.Count) { settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for index search settings.ActionKeywords.Add(Query.GlobalPluginWildcardSign); // for path search