disable update on debug builds
This commit is contained in:
@@ -16,6 +16,10 @@
|
|||||||
<NoWarn>1591</NoWarn>
|
<NoWarn>1591</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
||||||
|
<DefineConstants>$(DefineConstants);DISABLE_UPDATE</DefineConstants>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
||||||
<DebugSymbols>False</DebugSymbols>
|
<DebugSymbols>False</DebugSymbols>
|
||||||
<DebugType>None</DebugType>
|
<DebugType>None</DebugType>
|
||||||
|
|||||||
@@ -16,7 +16,9 @@ public class AppUpdates(string updateUrl, Window mainWindow)
|
|||||||
|
|
||||||
public async Task UpdateApp()
|
public async Task UpdateApp()
|
||||||
{
|
{
|
||||||
#if !DISABLE_UPDATE
|
#if DISABLE_UPDATE
|
||||||
|
await Task.CompletedTask;
|
||||||
|
#else
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await UpdateAppCore();
|
await UpdateAppCore();
|
||||||
|
|||||||
Reference in New Issue
Block a user