Skip to content

Commit

Permalink
Merge pull request #55 from WXRIW/autoupdate
Browse files Browse the repository at this point in the history
Add auto update
  • Loading branch information
WXRIW authored Feb 13, 2023
2 parents a8e5d8b + 3876d14 commit 4453be6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Ink Canvas/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Ink_Canvas.Helpers;
using AutoUpdaterDotNET;
using Ink_Canvas.Helpers;
using System;
using System.Linq;
using System.Reflection;
Expand Down Expand Up @@ -38,6 +39,11 @@ void App_Startup(object sender, StartupEventArgs e)
}

StartArgs = e.Args;
AutoUpdater.Start($"http://ink.wxriw.cn:1957/update");
AutoUpdater.ApplicationExitEvent += () =>
{
Environment.Exit(0);
};
}
}
}
4 changes: 3 additions & 1 deletion Ink Canvas/Ink Canvas.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@
</ItemGroup>
<!-- When Office is not installed -->
<ItemGroup>
<PackageReference Include="Autoupdater.NET.Official">
<Version>1.7.6</Version>
</PackageReference>
<PackageReference Include="Microsoft.Office.Interop.PowerPoint">
<Version>15.0.4420.1018</Version>
</PackageReference>
Expand Down Expand Up @@ -289,7 +292,6 @@
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>

<COMReference Include="stdole">
<Guid>{00020430-0000-0000-C000-000000000046}</Guid>
<VersionMajor>2</VersionMajor>
Expand Down

0 comments on commit 4453be6

Please sign in to comment.