Skip to content

Commit

Permalink
Fix .mo compilation rule to only run on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Nov 19, 2024
1 parent 41e6eb5 commit 181e9d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WinSparkle.Targets
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<CompiledTranslationFiles Include="translations\*.mo" />
</ItemGroup>

<Target Name="CopyTranslations_Poedit" BeforeTargets="ResourceCompile"
<Target Name="CopyTranslationFiles" BeforeTargets="ResourceCompile"
Inputs="@(TranslationFiles)"
Outputs="@(TranslationFiles->'%(Filename).mo')">
Outputs="@(TranslationFiles->'translations\%(Filename).mo')">
<Message Importance="High" Text="Compiling translations..." />
<Exec Command='$(Msgfmt) -o "translations\%(TranslationFiles.Filename).mo" @(TranslationFiles)' />
</Target>
Expand Down

0 comments on commit 181e9d2

Please sign in to comment.