Skip to content

Commit 0ae30bd

Browse files
Fix sqlite dependencies dll
1 parent 167e180 commit 0ae30bd

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/FirefoxBookmarkLoader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Flow.Launcher.Plugin.BrowserBookmark.Models;
1+
using Flow.Launcher.Plugin.BrowserBookmark.Models;
22
using System;
33
using System.Collections.Generic;
44
using System.Data.SQLite;
@@ -130,4 +130,4 @@ public static IEnumerable<T> Select<T>(this SQLiteDataReader reader, Func<SQLite
130130
}
131131
}
132132
}
133-
}
133+
}

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Library</OutputType>
55
<TargetFramework>net6.0-windows</TargetFramework>
6-
<UseWPF>true</UseWPF>
6+
<UseWPF>true</UseWPF>
77
<ProjectGuid>{9B130CC5-14FB-41FF-B310-0A95B6894C37}</ProjectGuid>
88
<AppDesignerFolder>Properties</AppDesignerFolder>
99
<RootNamespace>Flow.Launcher.Plugin.BrowserBookmark</RootNamespace>
@@ -23,7 +23,7 @@
2323
<WarningLevel>4</WarningLevel>
2424
<Prefer32Bit>false</Prefer32Bit>
2525
</PropertyGroup>
26-
26+
2727
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2828
<DebugType>pdbonly</DebugType>
2929
<Optimize>true</Optimize>
@@ -39,15 +39,6 @@
3939
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4040
</None>
4141
</ItemGroup>
42-
43-
<ItemGroup>
44-
<Content Include="x64\SQLite.Interop.dll">
45-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
46-
</Content>
47-
<Content Include="x86\SQLite.Interop.dll">
48-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
49-
</Content>
50-
</ItemGroup>
5142

5243
<ItemGroup>
5344
<ProjectReference Include="..\..\Flow.Launcher.Infrastructure\Flow.Launcher.Infrastructure.csproj" />
@@ -64,7 +55,7 @@
6455
</ItemGroup>
6556

6657
<ItemGroup>
67-
<PackageReference Include="System.Data.SQLite" Version="1.0.114.4" />
58+
<PackageReference Include="System.Data.SQLite" Version="1.0.116" />
6859
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.116" />
6960
<PackageReference Include="UnidecodeSharp" Version="1.0.0" />
7061
</ItemGroup>
@@ -73,4 +64,19 @@
7364
<Compile Remove="Bookmark.cs" />
7465
</ItemGroup>
7566

67+
<Target Name="CopyDLLs" AfterTargets="Build">
68+
<Message Text="Executing CopyDLLs task" Importance="High" />
69+
<Copy
70+
SourceFiles="$(TargetDir)\runtimes\win-x64\native\SQLite.Interop.dll"
71+
DestinationFolder="$(TargetDir)\x64" />
72+
<Copy
73+
SourceFiles="$(TargetDir)\runtimes\win-x86\native\SQLite.Interop.dll"
74+
DestinationFolder="$(TargetDir)\x86" />
75+
</Target>
76+
77+
<Target Name="DeleteRuntimesFolder" AfterTargets="CopyDLLs">
78+
<Message Text="Deleting runtimes folder" Importance="High" />
79+
<Delete Files="$(TargetDir)\runtimes" />
80+
</Target>
81+
7682
</Project>
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)