Permalink
Browse files

Added Squirrel to manage updating

  • Loading branch information...
1 parent ed7ed68 commit 3d90fa14e3b61c415d09ada9dd023fbd471d9c5a @Jessecar96 committed Dec 16, 2015
View
@@ -10,6 +10,7 @@
[Dd]ebug/
[Rr]elease/
+[Rr]eleases/
x64/
build/
[Bb]in/
@@ -223,19 +223,19 @@ private void InitializeComponent()
// menuImportMaFile
//
this.menuImportMaFile.Name = "menuImportMaFile";
- this.menuImportMaFile.Size = new System.Drawing.Size(241, 22);
+ this.menuImportMaFile.Size = new System.Drawing.Size(148, 22);
this.menuImportMaFile.Text = "Import maFile";
this.menuImportMaFile.Click += new System.EventHandler(this.menuImportMaFile_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
- this.toolStripSeparator1.Size = new System.Drawing.Size(238, 6);
+ this.toolStripSeparator1.Size = new System.Drawing.Size(145, 6);
//
// menuQuit
//
this.menuQuit.Name = "menuQuit";
- this.menuQuit.Size = new System.Drawing.Size(241, 22);
+ this.menuQuit.Size = new System.Drawing.Size(148, 22);
this.menuQuit.Text = "Quit";
this.menuQuit.Click += new System.EventHandler(this.menuQuit_Click);
//
@@ -12,6 +12,7 @@
using System.Diagnostics;
using System.Net;
using Newtonsoft.Json;
+using Squirrel;
namespace Steam_Desktop_Authenticator
{
@@ -38,6 +39,14 @@ public MainForm()
checkForUpdates();
}
+ async void Squirrel_UpdateApp()
+ {
+ using (var mgr = new UpdateManager("https://path/to/my/update/folder"))
+ {
+ await mgr.UpdateApp();
+ }
+ }
+
private void btnSteamLogin_Click(object sender, EventArgs e)
{
LoginForm mLoginForm = new LoginForm();
@@ -106,10 +106,54 @@
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
<ItemGroup>
+ <Reference Include="DeltaCompressionDotNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1d14d6e5194e7f4a, processorArchitecture=MSIL">
+ <HintPath>packages\DeltaCompressionDotNet.1.0.0\lib\net45\DeltaCompressionDotNet.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="DeltaCompressionDotNet.MsDelta, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46b2138a390abf55, processorArchitecture=MSIL">
+ <HintPath>packages\DeltaCompressionDotNet.1.0.0\lib\net45\DeltaCompressionDotNet.MsDelta.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="DeltaCompressionDotNet.PatchApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3e8888ee913ed789, processorArchitecture=MSIL">
+ <HintPath>packages\DeltaCompressionDotNet.1.0.0\lib\net45\DeltaCompressionDotNet.PatchApi.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>packages\squirrel.windows.1.2.1\lib\Net45\ICSharpCode.SharpZipLib.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
+ <HintPath>packages\Mono.Cecil.0.9.6.1\lib\net45\Mono.Cecil.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="Mono.Cecil.Mdb, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
+ <HintPath>packages\Mono.Cecil.0.9.6.1\lib\net45\Mono.Cecil.Mdb.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="Mono.Cecil.Pdb, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
+ <HintPath>packages\Mono.Cecil.0.9.6.1\lib\net45\Mono.Cecil.Pdb.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="Mono.Cecil.Rocks, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
+ <HintPath>packages\Mono.Cecil.0.9.6.1\lib\net45\Mono.Cecil.Rocks.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
+ <Reference Include="NuGet.Squirrel, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>packages\squirrel.windows.1.2.1\lib\Net45\NuGet.Squirrel.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="Splat, Version=1.6.2.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>packages\Splat.1.6.2\lib\Net45\Splat.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="Squirrel, Version=1.2.1.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>packages\squirrel.windows.1.2.1\lib\Net45\Squirrel.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
@@ -4,5 +4,9 @@
<package id="cef.redist.x86" version="3.2454.1344" targetFramework="net452" />
<package id="CefSharp.Common" version="45.0.0" targetFramework="net452" />
<package id="CefSharp.WinForms" version="45.0.0" targetFramework="net452" />
+ <package id="DeltaCompressionDotNet" version="1.0.0" targetFramework="net452" />
+ <package id="Mono.Cecil" version="0.9.6.1" targetFramework="net452" />
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net452" />
+ <package id="Splat" version="1.6.2" targetFramework="net452" />
+ <package id="squirrel.windows" version="1.2.1" targetFramework="net452" />
</packages>

0 comments on commit 3d90fa1

Please sign in to comment.