|
|
|
@ -4,7 +4,6 @@ using System.IO; |
|
|
|
using System.Reflection; |
|
|
|
using System.Reflection; |
|
|
|
using System.Text; |
|
|
|
using System.Text; |
|
|
|
using System.Threading.Channels; |
|
|
|
using System.Threading.Channels; |
|
|
|
using Blazored.LocalStorage; |
|
|
|
|
|
|
|
using Bugsnag.AspNet.Core; |
|
|
|
using Bugsnag.AspNet.Core; |
|
|
|
using Dapper; |
|
|
|
using Dapper; |
|
|
|
using ErsatzTV.Application; |
|
|
|
using ErsatzTV.Application; |
|
|
|
@ -94,10 +93,14 @@ namespace ErsatzTV |
|
|
|
?.GetCustomAttribute<AssemblyInformationalVersionAttribute>() |
|
|
|
?.GetCustomAttribute<AssemblyInformationalVersionAttribute>() |
|
|
|
?.InformationalVersion ?? "unknown"; |
|
|
|
?.InformationalVersion ?? "unknown"; |
|
|
|
|
|
|
|
|
|
|
|
configuration.NotifyReleaseStages = new[] { "public" }; |
|
|
|
configuration.NotifyReleaseStages = new[] { "public", "develop" }; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
|
|
|
|
configuration.ReleaseStage = "develop"; |
|
|
|
|
|
|
|
#else
|
|
|
|
// effectively "disable" by tweaking app config
|
|
|
|
// effectively "disable" by tweaking app config
|
|
|
|
configuration.ReleaseStage = bugsnagConfig.Enable ? "public" : "private"; |
|
|
|
configuration.ReleaseStage = bugsnagConfig.Enable ? "public" : "private"; |
|
|
|
|
|
|
|
#endif
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
services.AddCors( |
|
|
|
services.AddCors( |
|
|
|
@ -139,7 +142,6 @@ namespace ErsatzTV |
|
|
|
|
|
|
|
|
|
|
|
services.AddMudServices(); |
|
|
|
services.AddMudServices(); |
|
|
|
services.AddCourier(Assembly.GetAssembly(typeof(LibraryScanProgress))); |
|
|
|
services.AddCourier(Assembly.GetAssembly(typeof(LibraryScanProgress))); |
|
|
|
services.AddBlazoredLocalStorage(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Console.OutputEncoding = Encoding.UTF8; |
|
|
|
Console.OutputEncoding = Encoding.UTF8; |
|
|
|
|
|
|
|
|
|
|
|
|