Skip to content

Commit

Permalink
Merge pull request #2286 from cyanfish/mac-warning
Browse files Browse the repository at this point in the history
Mac: Add a warning when the specified icon file is missing
  • Loading branch information
cwensley authored Aug 24, 2022
2 parents 44bf9d5 + b23a9ca commit d51f5e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Eto.Mac/build/Mac.targets
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@
</UpdatePList>

<!-- Copy default icon if it doesn't exist -->
<Warning
Text="The icon file ($(IconFile)) does not exist in the output directory. Make sure the file exists and specify &lt;Content Include=&quot;$(IconFile)&quot; /&gt; in your project file."
Condition="!Exists('$(OutputResourcesPath)$(IconFile)')" />
<Copy SourceFiles="$(ReferenceFiles)Icon.icns" DestinationFiles="$(OutputResourcesPath)$(IconFile)" Condition="!Exists('$(OutputResourcesPath)$(IconFile)')" />

<!-- Set executable bit on launcher if on *nix -->
Expand Down

0 comments on commit d51f5e4

Please sign in to comment.