Skip to content

Commit f987980

Browse files
committed
Revert "try appending runtimeidentifier instead of removing unused runtimes"
This reverts commit 058158e.
1 parent 058158e commit f987980

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

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

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
1212
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
1313
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
14-
<RuntimeIdentifier>win</RuntimeIdentifier>
1514
<UseWindowsForms>true</UseWindowsForms>
1615
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
1716
</PropertyGroup>
@@ -37,6 +36,44 @@
3736
<Prefer32Bit>false</Prefer32Bit>
3837
</PropertyGroup>
3938

39+
<Target Name="RemoveUnnecessaryRuntimesAfterBuild" AfterTargets="Build">
40+
<RemoveDir Directories="$(OutputPath)runtimes\browser-wasm;
41+
$(OutputPath)runtimes\linux-arm;
42+
$(OutputPath)runtimes\linux-arm64;
43+
$(OutputPath)runtimes\linux-armel;
44+
$(OutputPath)runtimes\linux-mips64;
45+
$(OutputPath)runtimes\linux-musl-arm;
46+
$(OutputPath)runtimes\linux-musl-arm64;
47+
$(OutputPath)runtimes\linux-musl-x64;
48+
$(OutputPath)runtimes\linux-ppc64le;
49+
$(OutputPath)runtimes\linux-s390x;
50+
$(OutputPath)runtimes\linux-x64;
51+
$(OutputPath)runtimes\linux-x86;
52+
$(OutputPath)runtimes\maccatalyst-arm64;
53+
$(OutputPath)runtimes\maccatalyst-x64;
54+
$(OutputPath)runtimes\osx-arm64;
55+
$(OutputPath)runtimes\osx-x64"/>
56+
</Target>
57+
58+
<Target Name="RemoveUnnecessaryRuntimesAfterPublish" AfterTargets="Publish">
59+
<RemoveDir Directories="$(PublishDir)runtimes\browser-wasm;
60+
$(PublishDir)runtimes\linux-arm;
61+
$(PublishDir)runtimes\linux-arm64;
62+
$(PublishDir)runtimes\linux-armel;
63+
$(PublishDir)runtimes\linux-mips64;
64+
$(PublishDir)runtimes\linux-musl-arm;
65+
$(PublishDir)runtimes\linux-musl-arm64;
66+
$(PublishDir)runtimes\linux-musl-x64;
67+
$(PublishDir)runtimes\linux-ppc64le;
68+
$(PublishDir)runtimes\linux-s390x;
69+
$(PublishDir)runtimes\linux-x64;
70+
$(PublishDir)runtimes\linux-x86;
71+
$(PublishDir)runtimes\maccatalyst-arm64;
72+
$(PublishDir)runtimes\maccatalyst-x64;
73+
$(PublishDir)runtimes\osx-arm64;
74+
$(PublishDir)runtimes\osx-x64"/>
75+
</Target>
76+
4077
<ItemGroup>
4178
<None Include="plugin.json">
4279
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

0 commit comments

Comments
 (0)