diff --git a/src/App.axaml.cs b/src/App.axaml.cs index 3a7470dc1..00989dd81 100644 --- a/src/App.axaml.cs +++ b/src/App.axaml.cs @@ -257,6 +257,12 @@ public override void OnFrameworkInitializationCompleted() e.Cancel = true; }); +#if DEV_BUILD + var devIcon = new WindowIcon( + Avalonia.Platform.AssetLoader.Open(new Uri("avares://SourceGit/AppDev.ico"))); + Window.WindowOpenedEvent.AddClassHandler((w, _) => w.Icon = devIcon); +#endif + if (TryLaunchAsFileHistoryViewer(desktop)) return; diff --git a/src/AppDev.ico b/src/AppDev.ico new file mode 100644 index 000000000..2b9865653 Binary files /dev/null and b/src/AppDev.ico differ diff --git a/src/SourceGit.csproj b/src/SourceGit.csproj index fc8fe02d1..e42a1f280 100644 --- a/src/SourceGit.csproj +++ b/src/SourceGit.csproj @@ -3,7 +3,6 @@ WinExe net10.0 App.manifest - App.ico $([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)\\..\\VERSION")) true true @@ -19,6 +18,14 @@ Public + + App.ico + + + AppDev.ico + $(DefineConstants);DEV_BUILD + + true true @@ -39,6 +46,7 @@ + @@ -71,11 +79,11 @@ - + - +