Skip to content

Commit 7e4e679

Browse files
committed
Merge pull request #3982 from Flow-Launcher/squirrel_upgrade
Upgrade Nuget Packages
1 parent f37d4c4 commit 7e4e679

File tree

8 files changed

+1696
-27
lines changed

8 files changed

+1696
-27
lines changed

Flow.Launcher.Core/Configuration/Portable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ private static void IndicateDeletion(string filePathTodelete)
139139
public void PreStartCleanUpAfterPortabilityUpdate()
140140
{
141141
// Specify here so this method does not rely on other environment variables to initialise
142-
var portableDataDir = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location.NonNull()).ToString(), "UserData");
143-
var roamingDataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FlowLauncher");
142+
var portableDataDir = DataLocation.PortableDataPath;
143+
var roamingDataDir = DataLocation.RoamingDataPath;
144144

145145
// Get full path to the .dead files for each case
146146
var portableDataDeleteFilePath = Path.Combine(portableDataDir, DataLocation.DeletionIndicatorFile);

Flow.Launcher.Core/Flow.Launcher.Core.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@
5656
<ItemGroup>
5757
<PackageReference Include="Droplex" Version="1.7.0" />
5858
<PackageReference Include="FSharp.Core" Version="9.0.303" />
59-
<PackageReference Include="Meziantou.Framework.Win32.Jobs" Version="3.4.4" />
59+
<PackageReference Include="Meziantou.Framework.Win32.Jobs" Version="3.4.5" />
6060
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="3.0.1" />
6161
<PackageReference Include="SemanticVersioning" Version="3.0.0" />
62-
<PackageReference Include="squirrel.windows" Version="1.5.2" NoWarn="NU1701" />
62+
<!-- Do not upgrade this to higher version since higher version removes UpdateManager instance -->
63+
<PackageReference Include="squirrel.windows" Version="1.9.0" NoWarn="NU1701" />
6364
<PackageReference Include="StreamJsonRpc" Version="2.22.11" />
6465
</ItemGroup>
6566

Flow.Launcher.Core/Plugin/PluginConfig.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.IO;
55
using Flow.Launcher.Infrastructure;
66
using Flow.Launcher.Plugin;
77
using System.Text.Json;
8+
using Flow.Launcher.Infrastructure.UserSettings;
89
using CommunityToolkit.Mvvm.DependencyInjection;
910

1011
namespace Flow.Launcher.Core.Plugin
@@ -30,7 +31,7 @@ public static List<PluginMetadata> Parse(string[] pluginDirectories)
3031
// todo use linq when diable plugin is implmented since parallel.foreach + list is not thread saft
3132
foreach (var directory in directories)
3233
{
33-
if (File.Exists(Path.Combine(directory, "NeedDelete.txt")))
34+
if (File.Exists(Path.Combine(directory, DataLocation.PluginDeleteFile)))
3435
{
3536
try
3637
{

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ internal static async Task<bool> UninstallPluginAsync(PluginMetadata plugin, boo
815815
}
816816

817817
// Marked for deletion. Will be deleted on next start up
818-
using var _ = File.CreateText(Path.Combine(plugin.PluginDirectory, "NeedDelete.txt"));
818+
using var _ = File.CreateText(Path.Combine(plugin.PluginDirectory, DataLocation.PluginDeleteFile));
819819

820820
if (checkModified)
821821
{

0 commit comments

Comments
 (0)