Skip to content

Commit 3c2ea38

Browse files
committed
Merge branch 'dev' of https://github.com/Flow-Launcher/Flow.Launcher into jsonrpc_v2
2 parents c67d0fa + 026e5f5 commit 3c2ea38

File tree

70 files changed

+1168
-615
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1168
-615
lines changed

.github/actions/spelling/expect.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,9 @@ Português
103103
Português (Brasil)
104104
Italiano
105105
Slovenský
106+
Droplex
107+
Preinstalled
108+
errormetadatafile
109+
noresult
110+
pluginsmanager
111+
alreadyexists

.github/workflows/default_plugins.yml

Lines changed: 372 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/spelling.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
steps:
7474
- name: check-spelling
7575
id: spelling
76-
uses: check-spelling/check-spelling@main
76+
uses: check-spelling/check-spelling@v0.0.22
7777
with:
7878
suppress_push_for_open_pull_request: 1
7979
checkout: true
@@ -89,12 +89,13 @@ jobs:
8989
check_extra_dictionaries: ''
9090
quit_without_error: true
9191
extra_dictionaries:
92-
cspell:software-terms/src/software-terms.txt
92+
cspell:software-terms/dict/softwareTerms.txt
9393
cspell:win32/src/win32.txt
94-
cspell:php/php.txt
94+
cspell:php/src/php.txt
9595
cspell:filetypes/filetypes.txt
9696
cspell:csharp/csharp.txt
97-
cspell:dotnet/dotnet.txt
97+
cspell:dotnet/src/dotnet.txt
98+
cspell:python/src/common/extra.txt
9899
cspell:python/src/python/python-lib.txt
99100
cspell:aws/aws.txt
100101
cspell:companies/src/companies.txt
@@ -113,7 +114,7 @@ jobs:
113114
# if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push'
114115
# steps:
115116
# - name: comment
116-
# uses: check-spelling/check-spelling@main
117+
# uses: check-spelling/check-spelling@@v0.0.22
117118
# with:
118119
# checkout: true
119120
# spell_check_this: check-spelling/spell-check-this@main
@@ -129,7 +130,7 @@ jobs:
129130
if: (success() || failure()) && needs.spelling.outputs.followup && contains(github.event_name, 'pull_request')
130131
steps:
131132
- name: comment
132-
uses: check-spelling/check-spelling@main
133+
uses: check-spelling/check-spelling@v0.0.22
133134
with:
134135
checkout: true
135136
spell_check_this: check-spelling/spell-check-this@main
@@ -153,7 +154,7 @@ jobs:
153154
# cancel-in-progress: false
154155
# steps:
155156
# - name: apply spelling updates
156-
# uses: check-spelling/check-spelling@main
157+
# uses: check-spelling/check-spelling@v0.0.22
157158
# with:
158159
# experimental_apply_changes_via_bot: 1
159160
# checkout: true

Flow.Launcher.Core/ExternalPlugins/Environments/PythonEnvironment.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class PythonEnvironment : AbstractPluginEnvironment
1616

1717
internal override string EnvPath => Path.Combine(DataLocation.PluginEnvironmentsPath, EnvName);
1818

19-
internal override string InstallPath => Path.Combine(EnvPath, "PythonEmbeddable-v3.8.9");
19+
internal override string InstallPath => Path.Combine(EnvPath, "PythonEmbeddable-v3.11.4");
2020

2121
internal override string ExecutablePath => Path.Combine(InstallPath, "pythonw.exe");
2222

@@ -30,8 +30,9 @@ internal override void InstallEnvironment()
3030
{
3131
FilesFolders.RemoveFolderIfExists(InstallPath);
3232

33-
// Python 3.8.9 is used for Windows 7 compatibility
34-
DroplexPackage.Drop(App.python_3_8_9_embeddable, InstallPath).Wait();
33+
// Python 3.11.4 is no longer Windows 7 compatible. If user is on Win 7 and
34+
// uses Python plugin they need to custom install and use v3.8.9
35+
DroplexPackage.Drop(App.python_3_11_4_embeddable, InstallPath).Wait();
3536

3637
PluginsSettingsFilePath = ExecutablePath;
3738
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
</ItemGroup>
5454

5555
<ItemGroup>
56-
<PackageReference Include="Droplex" Version="1.6.0" />
57-
<PackageReference Include="FSharp.Core" Version="7.0.300" />
56+
<PackageReference Include="Droplex" Version="1.7.0" />
57+
<PackageReference Include="FSharp.Core" Version="7.0.400" />
5858
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.3.2" />
5959
<PackageReference Include="squirrel.windows" Version="1.5.2" NoWarn="NU1701" />
6060
<PackageReference Include="StreamJsonRpc" Version="2.16.36" />

Flow.Launcher.Core/Plugin/PluginAssemblyLoader.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,22 @@ protected override Assembly Load(AssemblyName assemblyName)
3434

3535
return existAssembly ?? (assemblyPath == null ? null : LoadFromAssemblyPath(assemblyPath));
3636
}
37+
38+
protected override IntPtr LoadUnmanagedDll(string unmanagedDllName)
39+
{
40+
var path = dependencyResolver.ResolveUnmanagedDllToPath(unmanagedDllName);
41+
if (!string.IsNullOrEmpty(path))
42+
{
43+
return LoadUnmanagedDllFromPath(path);
44+
}
45+
46+
return IntPtr.Zero;
47+
}
3748

3849
internal Type FromAssemblyGetTypeOfInterface(Assembly assembly, Type type)
3950
{
4051
var allTypes = assembly.ExportedTypes;
4152
return allTypes.First(o => o.IsClass && !o.IsAbstract && o.GetInterfaces().Any(t => t == type));
4253
}
4354
}
44-
}
55+
}

Flow.Launcher.Infrastructure/Flow.Launcher.Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<PrivateAssets>all</PrivateAssets>
5454
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5555
</PackageReference>
56-
<PackageReference Include="Microsoft.VisualStudio.Threading" Version="17.6.40" />
56+
<PackageReference Include="Microsoft.VisualStudio.Threading" Version="17.7.30" />
5757
<PackageReference Include="NLog" Version="4.7.10" />
5858
<PackageReference Include="NLog.Schema" Version="4.7.10" />
5959
<PackageReference Include="NLog.Web.AspNetCore" Version="4.13.0" />

Flow.Launcher.Plugin/Flow.Launcher.Plugin.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
</PropertyGroup>
1515

1616
<PropertyGroup>
17-
<Version>4.1.0</Version>
18-
<PackageVersion>4.1.0</PackageVersion>
19-
<AssemblyVersion>4.1.0</AssemblyVersion>
20-
<FileVersion>4.1.0</FileVersion>
17+
<Version>4.1.1</Version>
18+
<PackageVersion>4.1.1</PackageVersion>
19+
<AssemblyVersion>4.1.1</AssemblyVersion>
20+
<FileVersion>4.1.1</FileVersion>
2121
<PackageId>Flow.Launcher.Plugin</PackageId>
2222
<Authors>Flow-Launcher</Authors>
2323
<PackageLicenseExpression>MIT</PackageLicenseExpression>

Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public static string ReturnPreviousDirectoryIfIncompleteString(string path)
263263
}
264264

265265
/// <summary>
266-
/// Returns if <paramref name="parentPath"/> contains <paramref name="subPath"/>.
266+
/// Returns if <paramref name="parentPath"/> contains <paramref name="subPath"/>. Equal paths are not considered to be contained by default.
267267
/// From https://stackoverflow.com/a/66877016
268268
/// </summary>
269269
/// <param name="parentPath">Parent path</param>

Flow.Launcher.Test/FilesFoldersTest.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Flow.Launcher.Plugin.SharedCommands;
1+
using Flow.Launcher.Plugin.SharedCommands;
22
using NUnit.Framework;
33

44
namespace Flow.Launcher.Test
@@ -33,21 +33,21 @@ public class FilesFoldersTest
3333
[TestCase(@"c:\foo", @"c:\foo\..\bar\baz", false)]
3434
[TestCase(@"c:\bar", @"c:\foo\..\bar\baz", true)]
3535
[TestCase(@"c:\barr", @"c:\foo\..\bar\baz", false)]
36-
// Equality
37-
[TestCase(@"c:\foo", @"c:\foo", false)]
38-
[TestCase(@"c:\foo\", @"c:\foo", false)]
39-
[TestCase(@"c:\foo", @"c:\foo\", false)]
4036
public void GivenTwoPaths_WhenCheckPathContains_ThenShouldBeExpectedResult(string parentPath, string path, bool expectedResult)
4137
{
4238
Assert.AreEqual(expectedResult, FilesFolders.PathContains(parentPath, path));
4339
}
4440

41+
// Equality
42+
[TestCase(@"c:\foo", @"c:\foo", false)]
43+
[TestCase(@"c:\foo\", @"c:\foo", false)]
44+
[TestCase(@"c:\foo", @"c:\foo\", false)]
4545
[TestCase(@"c:\foo", @"c:\foo", true)]
4646
[TestCase(@"c:\foo\", @"c:\foo", true)]
4747
[TestCase(@"c:\foo", @"c:\foo\", true)]
48-
public void GivenTwoPathsAreTheSame_WhenCheckPathContains_ThenShouldBeTrue(string parentPath, string path, bool expectedResult)
48+
public void GivenTwoPathsAreTheSame_WhenCheckPathContains_ThenShouldBeExpectedResult(string parentPath, string path, bool expectedResult)
4949
{
50-
Assert.AreEqual(expectedResult, FilesFolders.PathContains(parentPath, path, true));
50+
Assert.AreEqual(expectedResult, FilesFolders.PathContains(parentPath, path, allowEqual: expectedResult));
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)