Skip to content

Commit

Permalink
Preview 1.82.2 Release (#608)
Browse files Browse the repository at this point in the history
# What's changed? - 1.82.2
- **[Fix]** Remove the use of Stub for launching Collapse, by @bagusnl 
- As we moved to Velopack, the use of stub is no longer needed as the
latest version will always be in the "current" folder.
- **[New]** Automatic Error Data Collection, by @bagusnl & @Cryotechnic 
- Every time either a crash or error happened, upload the error data
alongside with the latest log to Sentry server for further analysis by
developers.
  - Thanks Sentry for giving us free access to their Business plan <3
- **[New]** Rewrite Icon generator code to be trim/NativeAOT friendly,
by @neon-nyan
- **[Imp]** Updated .NET to GA (Release) version, by @bagusnl 
- **[Imp]** Decouples PInvoke code from Hi3Helper.Core to its own
Hi3Helper.Win32 submodule, by @neon-nyan
- **[Fix]** Fixed DllNotFoundException when trying to turn on Database
Sync feature, by @bagusnl
- This is caused by missing Microsoft Visual C/C++ Redistributable
required for the database handler.
- Currently, user will be notified about the missing redist and told to
download and install them.
- **[Fix]** SharingViolation Exception and other issues on Sophon
submodule, by @neon-nyan
  - Fix wrong URL path for manifestToProtoTaskCallback.
  - Fix non-existence files not getting renamed on update.
  - Fix SharedViolation exception by unassigning ReadOnly attribute.
- **[Imp]** Improvement on Sophon submodule, by @neon-nyan
- Reduce overhead on async I/O by removing unnecessary bridging
``Stream``.
- Directly invoking ``.GetAsync()`` on getting ``HttpResponseMessage``.
- Move to .NET 9's ``Convert.ToHexStringLower()`` to convert ``byte[]``
or ``ReadOnlySpan<byte>`` to Hex string.
- Always check for file availability on enumerating updates. This to
avoid unused files from old version to be written into new version.
  - Reuse code to deserializing Protobuf response and its callbacks.
- **[Fix]** Fixed IODenied error in Genshin repair, by @bagusnl 
- This is caused by an asset wrongly marked as Persistent while actually
being in StreamingAssets
- **[Imp]** Use local placeholder background while waiting for dispatch
background to download, by @bagusnl
- Also include fixes for IOSharingViolation errors for both background
and carousel event images
- **[Imp]** Let user know that Database sync is processing after manual
sync, by @bagusnl & @neon-nyan
- **[Fix]** Type casting mistakes on Zenless Zone Zero game settings
methods, by @neon-nyan

<details>
  <summary>Changelog Prefixes</summary>
  
  ```
    **[New]**
    **[Imp]**
    **[Fix]**
    **[Loc]**
    **[Doc]**
  ```

</details>
  • Loading branch information
bagusnl authored Nov 24, 2024
2 parents 6c77dcf + 484b897 commit f6ade5f
Show file tree
Hide file tree
Showing 170 changed files with 3,439 additions and 4,108 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
Platform: ${{ matrix.platform }}
DOTNET_INSTALL_DIR: '.\.dotnet'
DOTNET_VERSION: '9.x'
DOTNET_QUALITY: 'preview'
DOTNET_QUALITY: 'ga'
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages

steps:
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
Platform: ${{ matrix.platform }}
DOTNET_INSTALL_DIR: '.\.dotnet'
DOTNET_VERSION: '9.x'
DOTNET_QUALITY: 'preview'
DOTNET_QUALITY: 'ga'
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages

steps:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
[submodule "H.NotifyIcon"]
path = H.NotifyIcon
url = https://github.com/CollapseLauncher/H.NotifyIcon
[submodule "Hi3Helper.Win32"]
path = Hi3Helper.Win32
url = https://github.com/CollapseLauncher/Hi3Helper.Win32
1 change: 1 addition & 0 deletions .idea/.idea.CollapseLauncher/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions CollapseLauncher.sln
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "H.NotifyIcon", "H.NotifyIco
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "H.GeneratedIcons.System.Drawing", "H.NotifyIcon\src\libs\H.GeneratedIcons.System.Drawing\H.GeneratedIcons.System.Drawing.csproj", "{911C98FD-C64D-4BAC-8EF5-0616F8EFF7B9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hi3Helper.Win32", "Hi3Helper.Win32\Hi3Helper.Win32.csproj", "{F65C6DAC-CC04-214B-9430-2C4AE31448E2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Expand Down Expand Up @@ -111,7 +113,9 @@ Global
{C9CBAF52-49C7-4B72-A03B-130F596E24CB}.Debug|x64.ActiveCfg = Debug|x64
{C9CBAF52-49C7-4B72-A03B-130F596E24CB}.Debug|x64.Build.0 = Debug|x64
{C9CBAF52-49C7-4B72-A03B-130F596E24CB}.Publish|x64.ActiveCfg = Release|x64
{C9CBAF52-49C7-4B72-A03B-130F596E24CB}.Publish|x64.Build.0 = Release|x64
{C9CBAF52-49C7-4B72-A03B-130F596E24CB}.Release|x64.ActiveCfg = Release|x64
{C9CBAF52-49C7-4B72-A03B-130F596E24CB}.Release|x64.Build.0 = Release|x64
{558A1D17-BEB4-49DF-A200-15ABE283BDED}.Debug|x64.ActiveCfg = Debug|x64
{558A1D17-BEB4-49DF-A200-15ABE283BDED}.Debug|x64.Build.0 = Debug|x64
{558A1D17-BEB4-49DF-A200-15ABE283BDED}.Publish|x64.ActiveCfg = Release|x64
Expand Down Expand Up @@ -142,6 +146,12 @@ Global
{911C98FD-C64D-4BAC-8EF5-0616F8EFF7B9}.Publish|x64.Build.0 = Release|x64
{911C98FD-C64D-4BAC-8EF5-0616F8EFF7B9}.Release|x64.ActiveCfg = Release|x64
{911C98FD-C64D-4BAC-8EF5-0616F8EFF7B9}.Release|x64.Build.0 = Release|x64
{F65C6DAC-CC04-214B-9430-2C4AE31448E2}.Debug|x64.ActiveCfg = Debug|x64
{F65C6DAC-CC04-214B-9430-2C4AE31448E2}.Debug|x64.Build.0 = Debug|x64
{F65C6DAC-CC04-214B-9430-2C4AE31448E2}.Publish|x64.ActiveCfg = Release|x64
{F65C6DAC-CC04-214B-9430-2C4AE31448E2}.Publish|x64.Build.0 = Release|x64
{F65C6DAC-CC04-214B-9430-2C4AE31448E2}.Release|x64.ActiveCfg = Release|x64
{F65C6DAC-CC04-214B-9430-2C4AE31448E2}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
4 changes: 4 additions & 0 deletions CollapseLauncher.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
<BuildType Solution="Publish|*" Project="Release" />
<Platform Project="x64" />
</Project>
<Project Path="Hi3Helper.Win32/Hi3Helper.Win32.csproj">
<BuildType Solution="Publish|*" Project="Debug" />
<Platform Project="x64" />
</Project>
<Project Path="ImageEx\ImageEx\ImageEx.csproj" Id="9c7abc1d-504e-45c4-ae76-98a9f6e28c80">
<BuildType Solution="Publish|*" Project="Release" />
<Platform Project="x64" />
Expand Down
18 changes: 14 additions & 4 deletions CollapseLauncher/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
using CollapseLauncher.Helper;
using CollapseLauncher.Helper.Image;
using Hi3Helper;
using Hi3Helper.SentryHelper;
using Hi3Helper.Shared.Region;
using Hi3Helper.Win32.Native;
using Hi3Helper.Win32.Native.Enums;
using Microsoft.UI;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Media;
Expand All @@ -11,7 +14,6 @@
using System.Linq;
using Windows.UI;
using static CollapseLauncher.InnerLauncherConfig;
using static Hi3Helper.InvokeProp;
using static Hi3Helper.Logger;

namespace CollapseLauncher
Expand All @@ -36,6 +38,7 @@ public App()
DebugSettings.XamlResourceReferenceFailed += static (sender, args) =>
{
LogWriteLine($"[XAML_RES_REFERENCE] Sender: {sender}\r\n{args!.Message}", LogType.Error, true);
SentryHelper.ExceptionHandler(new Exception($"{args.Message}"), SentryHelper.ExceptionType.UnhandledXaml);
#if !DEBUG
MainEntryPoint.SpawnFatalErrorConsole(new Exception(args!.Message));
#endif
Expand All @@ -44,21 +47,27 @@ public App()
DebugSettings.BindingFailed += static (sender, args) =>
{
LogWriteLine($"[XAML_BINDING] Sender: {sender}\r\n{args!.Message}", LogType.Error, true);
SentryHelper.ExceptionHandler(new Exception($"{args.Message}"), SentryHelper.ExceptionType.UnhandledXaml);
#if !DEBUG
MainEntryPoint.SpawnFatalErrorConsole(new Exception(args!.Message));
#endif
};
UnhandledException += static (sender, e) =>
{
LogWriteLine($"[XAML_OTHER] Sender: {sender}\r\n{e!.Exception} {e.Exception!.InnerException}", LogType.Error, true);
#if !DEBUG
var ex = e.Exception;
if (ex != null)
{
SentryHelper.ExceptionHandler(ex, SentryHelper.ExceptionType.UnhandledXaml);
}
#if !DEBUG
MainEntryPoint.SpawnFatalErrorConsole(e!.Exception);
#endif
#endif
};
}

RequestedTheme = IsAppThemeLight ? ApplicationTheme.Light : ApplicationTheme.Dark;
SetPreferredAppMode(ShouldAppsUseDarkMode() ? PreferredAppMode.AllowDark : PreferredAppMode.Default);
PInvoke.SetPreferredAppMode(PInvoke.ShouldAppsUseDarkMode() ? PreferredAppMode.AllowDark : PreferredAppMode.Default);

this.InitializeComponent();
}
Expand Down Expand Up @@ -133,6 +142,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs args)
{
LogWriteLine($"FATAL ERROR ON APP INITIALIZER LEVEL!!!\r\n{ex}", LogType.Error, true);
LogWriteLine("\r\nIf this is not intended, please report it to: https://github.com/CollapseLauncher/Collapse/issues\r\nPress any key to exit...");
SentryHelper.ExceptionHandler(ex, SentryHelper.ExceptionType.UnhandledOther);
//Console.ReadLine();
throw;
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
161 changes: 0 additions & 161 deletions CollapseLauncher/Classes/CoCreateInstance.cs

This file was deleted.

Loading

0 comments on commit f6ade5f

Please sign in to comment.