mirror of
https://github.com/Crunchy-DL/Crunchy-Downloader.git
synced 2026-01-11 20:10:26 +00:00
- Added **video/audio toggle for endpoints** to control which media type is used from each endpoint - **Updated packages** to the latest versions - **Updated Android phone token**
39 lines
No EOL
1.1 KiB
C#
39 lines
No EOL
1.1 KiB
C#
using System;
|
|
using Avalonia;
|
|
using System.Linq;
|
|
using ReactiveUI.Avalonia;
|
|
|
|
namespace CRD;
|
|
|
|
sealed class Program{
|
|
// Initialization code. Don't use any Avalonia, third-party APIs or any
|
|
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
|
|
// yet and stuff might break.
|
|
[STAThread]
|
|
public static void Main(string[] args){
|
|
var isHeadless = args.Contains("--headless");
|
|
|
|
BuildAvaloniaApp(isHeadless).StartWithClassicDesktopLifetime(args);
|
|
}
|
|
|
|
// Avalonia configuration, don't remove; also used by visual designer.
|
|
// public static AppBuilder BuildAvaloniaApp()
|
|
// => AppBuilder.Configure<App>()
|
|
// .UsePlatformDetect()
|
|
// .WithInterFont()
|
|
// .LogToTrace();
|
|
|
|
public static AppBuilder BuildAvaloniaApp(bool isHeadless){
|
|
var builder = AppBuilder.Configure<App>()
|
|
.UsePlatformDetect()
|
|
.WithInterFont()
|
|
.LogToTrace()
|
|
.UseReactiveUI() ;
|
|
|
|
if (isHeadless){
|
|
Console.WriteLine("Running in headless mode...");
|
|
}
|
|
|
|
return builder;
|
|
}
|
|
} |