Skip to content

Commit

Permalink
feat: add icons as embedded resource
Browse files Browse the repository at this point in the history
  • Loading branch information
schmic committed Oct 6, 2024
1 parent e3fd8c3 commit 7f2741e
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions HaPlugin/HaPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@
<PluginDir Condition="$(OS) != 'Windows_NT'">~/Library/Application\ Support/Logi/LogiPluginService/Plugins/</PluginDir>
</PropertyGroup>

<ItemGroup>
<None Remove="Resources\light_off.png" />
<None Remove="Resources\light_on.png" />
<None Remove="Resources\lock_locked.png" />
<None Remove="Resources\lock_unlocked.png" />
<None Remove="Resources\switch_off.png" />
<None Remove="Resources\switch_on.png" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Resources\light_off.png" />
<EmbeddedResource Include="Resources\light_on.png" />
<EmbeddedResource Include="Resources\lock_locked.png" />
<EmbeddedResource Include="Resources\lock_unlocked.png" />
<EmbeddedResource Include="Resources\switch_off.png" />
<EmbeddedResource Include="Resources\switch_on.png" />
</ItemGroup>

<ItemGroup>
<Reference Include="PluginApi">
<HintPath>$(PluginApiDir)PluginApi.dll</HintPath>
Expand All @@ -31,8 +49,8 @@
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Condition="$(OS) == 'Windows_NT'" Command="echo $(OutputPath) &gt; &quot;$(PluginDir)$(ProjectName).link&quot;" />
<Exec Condition="$(OS) != 'Windows_NT'" Command="echo $(OutputPath) &gt; $(PluginDir)$(ProjectName).link" />
<!-- <Exec Condition="$(OS) == 'Windows_NT'" Command="echo $(OutputPath) &gt; &quot;$(PluginDir)$(ProjectName).link&quot;" /> -->
<!-- <Exec Condition="$(OS) != 'Windows_NT'" Command="echo $(OutputPath) &gt; $(PluginDir)$(ProjectName).link" /> -->

<RemoveDir Directories="$(OutputPath)win" />
<MakeDir Directories="$(OutputPath)win" />
Expand Down

0 comments on commit 7f2741e

Please sign in to comment.