Skip to content

Commit

Permalink
Merge pull request #26 from slxdy/updater-fix
Browse files Browse the repository at this point in the history
Reimplement the auto updater
  • Loading branch information
HerpDerpinstine authored Nov 18, 2024
2 parents eab98a6 + d4b6789 commit e5f0215
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build Installer

run-name: 4.0.0-ci.${{ github.run_number }} | ${{ github.event_name != 'workflow_dispatch' && (github.event.head_commit.message || format('`[PR]` {0}', github.event.pull_request.title)) || 'Manual Build' }}
run-name: 4.0.1-ci.${{ github.run_number }} | ${{ github.event_name != 'workflow_dispatch' && (github.event.head_commit.message || format('`[PR]` {0}', github.event.pull_request.title)) || 'Manual Build' }}

env:
DEVVERSION: "4.0.0"
DEVVERSION: "4.0.1"

on:
push:
Expand Down
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>
<PropertyGroup>
<Version>4.0.0</Version>
<Version>4.0.1</Version>

<Nullable>enable</Nullable>
<AvaloniaVersion>11.2.1</AvaloniaVersion>
</PropertyGroup>
</Project>
</Project>
6 changes: 4 additions & 2 deletions MelonLoader.Installer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ private static void Main(string[] args)
if (!CheckProcessLock())
return;

Updater.UpdateIfPossible();

BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);

Exiting?.Invoke();
Expand Down Expand Up @@ -95,12 +97,12 @@ internal static void GrabAttention()

private static void GrabAttention(Process process)
{
var processHandle = process.MainWindowHandle;
/*var processHandle = process.MainWindowHandle;
if (WindowsUtils.IsIconic(processHandle))
WindowsUtils.ShowWindow(processHandle, 9);
WindowsUtils.SetForegroundWindow(processHandle);
WindowsUtils.BringWindowToTop(processHandle);
WindowsUtils.BringWindowToTop(processHandle);*/
}

// Avalonia configuration, don't remove; also used by visual designer.
Expand Down

0 comments on commit e5f0215

Please sign in to comment.