Skip to content

Commit

Permalink
Fix universalbinary check to only work on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Sep 6, 2024
1 parent 21ecb3f commit b7cc4af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tasks/TestMacOSTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public override void Run(BuildContext context)
context.Information($"ARCHITECTURE: arm64");
}

if (context.IsUniversalBinary && !(arm64 && x86_64))
if (context.IsUniversalBinary && filePath.Contains ("osx") && !(arm64 && x86_64))
{
context.Information($"INVALID universal binary");
throw new Exception("An universal binary hasn't been generated!");
Expand Down

0 comments on commit b7cc4af

Please sign in to comment.