Skip to content

Commit

Permalink
update deps & fix ArcSDK.dll detected
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBoot committed Dec 4, 2021
1 parent c50360d commit 5c8c2f8
Show file tree
Hide file tree
Showing 16 changed files with 61 additions and 161 deletions.
6 changes: 3 additions & 3 deletions GiganticEmu.Agent/GiganticEmu.Agent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

<ItemGroup>
<PackageReference Include="Fetchgoods.Text.Json.Extensions" Version="0.1.0" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="5.0.12" />
<PackageReference Include="System.Text.Json" Version="5.0.2" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="6.0.0" />
<PackageReference Include="System.Text.Json" Version="6.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
</ItemGroup>

Expand Down
24 changes: 12 additions & 12 deletions GiganticEmu.Launcher/App/App.xaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Application x:Class="GiganticEmu.Launcher.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:GiganticEmu.Launcher"
StartupUri="MainWindow.xaml" Exit="Application_Exit">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:GiganticEmu.Launcher"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
Expand All @@ -12,12 +12,12 @@
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Cyan.xaml" />
</ResourceDictionary.MergedDictionaries>
<SolidColorBrush x:Key="PrimaryHueLightBrush" Color="#1a7d93"/>
<SolidColorBrush x:Key="PrimaryHueLightForegroundBrush" Color="White"/>
<SolidColorBrush x:Key="PrimaryHueMidBrush" Color="#1a7d93"/>
<SolidColorBrush x:Key="PrimaryHueMidForegroundBrush" Color="White"/>
<SolidColorBrush x:Key="PrimaryHueDarkBrush" Color="#1a7d93"/>
<SolidColorBrush x:Key="PrimaryHueDarkForegroundBrush" Color="White"/>
<SolidColorBrush x:Key="PrimaryHueLightBrush" Color="#1a7d93" />
<SolidColorBrush x:Key="PrimaryHueLightForegroundBrush" Color="White" />
<SolidColorBrush x:Key="PrimaryHueMidBrush" Color="#1a7d93" />
<SolidColorBrush x:Key="PrimaryHueMidForegroundBrush" Color="White" />
<SolidColorBrush x:Key="PrimaryHueDarkBrush" Color="#1a7d93" />
<SolidColorBrush x:Key="PrimaryHueDarkForegroundBrush" Color="White" />
</ResourceDictionary>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
Expand Down Expand Up @@ -45,7 +45,7 @@
</Setter.Value>
</Setter>
</Style>

<!--ScrollBars-->
<Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
<Setter Property="Stylus.IsFlicksEnabled" Value="false" />
Expand Down Expand Up @@ -105,4 +105,4 @@
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>
</Application>
7 changes: 0 additions & 7 deletions GiganticEmu.Launcher/App/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public class Options

public App()
{
Settings.Load();

Parser.Default.ParseArguments<Options>(Environment.GetCommandLineArgs())
.WithParsed<Options>(o =>
{
Expand All @@ -51,9 +49,4 @@ public App()
BaseAddress = new Uri(Locator.Current.GetService<LauncherConfiguration>()!.Host)
}), typeof(IBackendApi));
}

private void Application_Exit(object sender, ExitEventArgs e)
{
Settings.Save();
}
}
40 changes: 0 additions & 40 deletions GiganticEmu.Launcher/Common/Settings.cs

This file was deleted.

12 changes: 6 additions & 6 deletions GiganticEmu.Launcher/GiganticEmu.Launcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="CredentialManagement.Standard" Version="1.0.4" />
<PackageReference Include="Flurl.Http" Version="3.2.0" />
<PackageReference Include="MaterialDesignColors" Version="2.0.1" />
<PackageReference Include="MaterialDesignColors" Version="2.0.4" />
<PackageReference Include="MaterialDesignExtensions" Version="3.3.0" />
<PackageReference Include="MaterialDesignThemes" Version="4.1.0" />
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.0.2" />
<PackageReference Include="MaterialDesignThemes" Version="4.3.0" />
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.2" />
<PackageReference Include="DynamicData" Version="7.4.3" />
<PackageReference Include="ReactiveUI" Version="16.3.10" />
<PackageReference Include="ReactiveUI.Fody" Version="16.3.10" />
<PackageReference Include="ReactiveUI.WPF" Version="16.3.10" />
<PackageReference Include="ReactiveUI" Version="17.0.1" />
<PackageReference Include="ReactiveUI.Fody" Version="17.0.1" />
<PackageReference Include="ReactiveUI.WPF" Version="17.0.1" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />

<ProjectReference Include="..\GiganticEmu.Shared\GiganticEmu.Shared.csproj" />
Expand Down
7 changes: 6 additions & 1 deletion GiganticEmu.Launcher/Main/FriendList.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<rxui:ReactiveUserControl x:Class="GiganticEmu.Launcher.FriendList"
<rxui:ReactiveUserControl x:Class="GiganticEmu.Launcher.FriendList"
x:TypeArguments="local:FriendListViewModel"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Expand All @@ -24,6 +24,11 @@
<Popup x:Name="PopupUser" IsOpen="{Binding IsChecked, ElementName=ButtonUserName}" PlacementTarget="{Binding ElementName=ButtonUserName}" StaysOpen="False">
<Border BorderBrush="{DynamicResource PrimaryHueMidBrush}" BorderThickness="1,1,1,1">
<Menu Name="UserMenu" HorizontalAlignment="Left" VerticalAlignment="Top">
<Menu.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Vertical" />
</ItemsPanelTemplate>
</Menu.ItemsPanel>
<MenuItem x:Name="ButtonLogout" Header="Logout" />
</Menu>
</Border>
Expand Down
2 changes: 1 addition & 1 deletion GiganticEmu.Launcher/Main/FriendList.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ReactiveUI;
using ReactiveUI;
using System;
using System.Reactive;
using System.Reactive.Disposables;
Expand Down
32 changes: 1 addition & 31 deletions GiganticEmu.Launcher/Main/FriendListViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using DynamicData;
using DynamicData;
using DynamicData.Binding;
using ReactiveUI;
using ReactiveUI.Fody.Helpers;
Expand Down Expand Up @@ -58,36 +58,6 @@ public FriendListViewModel()

_friends.RemoveKeys(_friends.Keys.Except(friends.Select(x => x.UserName)));
});

//_friends.Add(new FriendData()
//{
// UserName = "TheLegend28",
// IconHash = "0418e2cea8ef594e6bc05ab3c3fe1fae0db09a2981d32b291992ddc2191075fe",
// IsOnline = true,
// CanAccept = false,
// HasAccepted = true,
// CanJoin = false
//});

//_friends.Add(new FriendData()
//{
// UserName = "TheLegend29",
// IconHash = "e60c11bc0ea105260a7a345528e55b38d2ff4fef03124b8b295ee2c655faadf5",
// IsOnline = false,
// CanAccept = false,
// HasAccepted = true,
// CanJoin = false
//});

//_friends.Add(new FriendData()
//{
// UserName = "TheLegend30",
// IconHash = "17887f87477a18d04aeb3012f23f23843606e0ab9a9b25664ac348274de89b0c",
// IsOnline = false,
// CanAccept = true,
// HasAccepted = true,
// CanJoin = false
//});
}

private async Task DoAddFriend(string userName)
Expand Down
4 changes: 2 additions & 2 deletions GiganticEmu.Launcher/Main/MainContainerViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GiganticEmu.Agent;
using GiganticEmu.Agent;
using GiganticEmu.Shared;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
Expand Down Expand Up @@ -56,7 +56,7 @@ private async Task DoStartGame()

var arcsdkMetadata = File.Exists(Path.Join(path, "ArcSDK.dll")) ? FileVersionInfo.GetVersionInfo(Path.Join(path, "ArcSDK.dll")) : null;

if (arcsdkMetadata == null || arcsdkMetadata.InternalName != "ArcSDK" || arcsdkMetadata.ProductVersion == null)
if (arcsdkMetadata == null || arcsdkMetadata.ProductName != "ArcSDK" || arcsdkMetadata.ProductVersion == null)
{
var result = MessageBox.Show("Unknown ArcSDK.dll version found.\nThis probably means this is your first time running MistforgeLauncher.\nMistforgeLauncher needs to replace the ArcSDK.dll with it's own version to continue.\n\nDo you want to continue?", "Unknown ArcSDK.dll version!", MessageBoxButton.YesNo, MessageBoxImage.Question);
if (result != MessageBoxResult.Yes) return;
Expand Down
6 changes: 3 additions & 3 deletions GiganticEmu.Mice/GiganticEmu.Mice.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

<ItemGroup>
<PackageReference Include="Fetchgoods.Text.Json.Extensions" Version="0.1.0" />
<PackageReference Include="System.IO.Pipelines" Version="4.7.2" />
<PackageReference Include="System.Text.Json" Version="4.7.2" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="5.0.5" />
<PackageReference Include="System.IO.Pipelines" Version="6.0.0" />
<PackageReference Include="System.Text.Json" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
12 changes: 10 additions & 2 deletions GiganticEmu.Shared.Backend/Data/ApplicationDatabaseFactory.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;

Expand All @@ -14,12 +15,19 @@ public ApplicationDatabase CreateDbContext(string[] args)
public ApplicationDatabase CreateDbContext()
{
var builder = new DbContextOptionsBuilder<ApplicationDatabase>()
.UseNpgsql(Environment.GetEnvironmentVariable("CONNECTIONSTRINGS__POSTGRES"), options =>
.UseNpgsql(Environment.GetEnvironmentVariable("CONNECTIONSTRINGS__POSTGRES")!, options =>
{
options.EnableRetryOnFailure();
});

return new ApplicationDatabase(builder.Options);
var db = new ApplicationDatabase(builder.Options);

if (db.Database.GetPendingMigrations().Count() > 0)
{
db.Database.Migrate();
}

return db;
}

public static void Main(string[] args)
Expand Down
22 changes: 12 additions & 10 deletions GiganticEmu.Shared.Backend/GiganticEmu.Shared.Backend.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.7">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="5.0.7" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.7" />
<PackageReference Include="Microsoft.Tye.Extensions.Configuration" Version="0.7.0-alpha.21279.2" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.0" />
<PackageReference Include="Microsoft.Tye.Extensions.Configuration" Version="0.10.0-alpha.21420.1" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.0" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="6.0.0" />
<PackageReference Include="Serilog" Version="2.10.0" />
<PackageReference Include="Serilog.AspNetCore" Version="4.1.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" />

<ProjectReference Include="..\GiganticEmu.Shared\GiganticEmu.Shared.csproj" />
</ItemGroup>

</Project>
</Project>
4 changes: 2 additions & 2 deletions GiganticEmu.Shared/GiganticEmu.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
<PackageReference Include="refit" Version="6.0.38" />
<PackageReference Include="refit" Version="6.1.15" />
</ItemGroup>

</Project>
</Project>
4 changes: 2 additions & 2 deletions GiganticEmu.Web/GiganticEmu.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<ItemGroup>
<PackageReference Include="Fetchgoods.Text.Json.Extensions" Version="0.1.0" />
<PackageReference Include="System.Text.Json" Version="4.7.2" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
<PackageReference Include="System.Text.Json" Version="6.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 1 addition & 7 deletions GiganticEmu.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,13 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)

app.UseRouting();

//app.UseAuthentication();
//app.UseAuthentication();
//app.UseAuthorization();

app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});

using (var serviceScope = app.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope())
{
var context = serviceScope.ServiceProvider.GetService<ApplicationDatabase>();
context?.Database.Migrate();
}

}
}
32 changes: 0 additions & 32 deletions tye.yaml

This file was deleted.

0 comments on commit 5c8c2f8

Please sign in to comment.