Skip to content

Commit

Permalink
Fix win32 being called on linux systems
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchLeaders committed May 16, 2023
1 parent d317eee commit 37c4e76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public static void Main(string[] args)
CommandProcessor.Process(args.ToList());
}
else {
#if WIN_X64
WindowHelper.SetWindowMode(WindowMode.Hidden);
#endif
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Totk.ZStdTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<DebugType>embedded</DebugType>
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefineConstants Condition="'$(RuntimeIdentifier)'=='win-x64'">WIN_X64</DefineConstants>
</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="Assets\**" />
Expand Down

0 comments on commit 37c4e76

Please sign in to comment.