Commit 88ce1fc9 authored by Archnoc's avatar Archnoc

update import, publish settings

parent 8d1daad0
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
namespace sunrise_launcher
{
......
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Generic;
namespace sunrise_launcher
{
......
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;
using System.Linq;
using System.IO;
using System.Linq;
using System.Text.Json.Serialization;
namespace sunrise_launcher
{
......
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Threading.Tasks;
namespace sunrise_launcher
{
......
......@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Net.Http;
using System.Security.Cryptography;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
......
using Qml.Net;
using Qml.Net.Runtimes;
using System;
using System.IO;
......@@ -18,22 +17,30 @@ namespace sunrise_launcher
Console.SetOut(writer);
writer.AutoFlush = true;
RuntimeManager.DiscoverOrDownloadSuitableQtRuntime();
using (var app = new QGuiApplication(args))
try
{
App = app;
using (var engine = new QQmlApplicationEngine())
RuntimeManager.DiscoverOrDownloadSuitableQtRuntime();
using (var app = new QGuiApplication(args))
{
//register types
Qml.Net.Qml.RegisterType<ServerList>("sunrise", 1, 1);
Qml.Net.Qml.RegisterType<Server>("sunrise", 1, 1);
App = app;
using (var engine = new QQmlApplicationEngine())
{
//register types
Qml.Net.Qml.RegisterType<ServerList>("sunrise", 1, 1);
Qml.Net.Qml.RegisterType<Server>("sunrise", 1, 1);
//load qml files
engine.Load("main.qml");
//load qml files
engine.Load("main.qml");
return app.Exec();
return app.Exec();
}
}
}
catch (Exception ex)
{
Console.WriteLine("exception in main: {0}", ex.Message);
return 1;
}
}
}
}
......
using Qml.Net;
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text.Json;
using System.Threading.Tasks;
using System.Threading;
using System.IO;
using System.Diagnostics;
using System.Security.Cryptography;
namespace sunrise_launcher
{
......
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
......
using System;
using Qml.Net;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Security.Cryptography;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading;
using System.Threading.Tasks;
using Qml.Net;
namespace sunrise_launcher
{
......
......@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Net.Http;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
......
......@@ -3,16 +3,26 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<PublishTrimmed>true</PublishTrimmed>
<PublishReadyToRun>true</PublishReadyToRun>
<PublishReadyToRunShowWarnings>true</PublishReadyToRunShowWarnings>
<PublishSingleFile>true</PublishSingleFile>
<RootNamespace>sunrise_launcher</RootNamespace>
<ApplicationIcon>sunrise.ico</ApplicationIcon>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<StartupObject />
<SignAssembly>false</SignAssembly>
<Authors>sunrise-launcher</Authors>
</PropertyGroup>
<ItemGroup>
<TrimmerRootAssembly Include="System.Text.Json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Qml.Net" Version="0.10.1" />
<PackageReference Include="Qml.Net.WindowsBinaries" Version="0.10.1" />
<PackageReference Include="System.Collections.Immutable" Version="1.7.0" />
</ItemGroup>
<ItemGroup>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment