Skip to content
This repository was archived by the owner on Dec 22, 2019. It is now read-only.

Commit dae58bb

Browse files
committed
Version bump to 0.4.0
1 parent 2a32709 commit dae58bb

File tree

6 files changed

+27
-79
lines changed

6 files changed

+27
-79
lines changed

UpdateLib/TestApp/Form1.Designer.cs

Lines changed: 7 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UpdateLib/TestApp/Form1.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,5 @@ private string ReadFileAndKeepStreamOpen(string file)
9999

100100
return text;
101101
}
102-
103-
private void button1_Click(object sender, EventArgs e)
104-
{
105-
DummyTask task = new DummyTask();
106-
task.TaskCompleted += (o, ex) => Updater.Instance.Logger.Debug(nameof(DummyTask), string.Empty, "Callback task completed!");
107-
task.Start();
108-
}
109-
110-
private void button2_Click(object sender, EventArgs e)
111-
{
112-
//Updater.Instance.RestartApp(false, false, true, true);
113-
}
114102
}
115103
}

UpdateLib/TestApp/Program.cs

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,38 +19,24 @@ static class Program
1919
[STAThread]
2020
static void Main()
2121
{
22-
try
23-
{
24-
RegistryKey key = Registry.ClassesRoot.OpenSubKey(".001\test", RegistryKeyPermissionCheck.ReadWriteSubTree, System.Security.AccessControl.RegistryRights.FullControl);
25-
22+
// we still want our updater to have visual styles in case of update cmd argument switch
23+
Application.EnableVisualStyles();
24+
Application.SetCompatibleTextRenderingDefault(false);
2625

27-
// for testing
28-
Application.ThreadException += Application_ThreadException;
26+
Updater.Instance
27+
.ConfigureUpdateUrl("https://raw.githubusercontent.com/MatthiWare/UpdateLib.TestApp.UpdateExample/master/Dev/updatefile.xml")
28+
//.ConfigureUpdateUrl("http://matthiware.dev/UpdateLib/Dev/updatefile.xml")
29+
.ConfigureLogger((logger) => logger.LogLevel = LoggingLevel.Debug)
30+
.ConfigureLogger((logger) => logger.Writers.Add(new ConsoleLogWriter()))
31+
.ConfigureLogger((logger) => logger.Writers.Add(new FileLogWriter()))
32+
.ConfigureUnsafeConnections(true)
33+
.ConfigureCacheInvalidation(TimeSpan.FromSeconds(30))
34+
.ConfigureNeedsRestartBeforeUpdate(true)
35+
.ConfigureInstallationMode(InstallationMode.Shared)
36+
.Initialize();
2937

30-
// we still want our updater to have visual styles in case of update cmd argument switch
31-
Application.EnableVisualStyles();
32-
Application.SetCompatibleTextRenderingDefault(false);
38+
Application.Run(new Form1());
3339

34-
Updater.Instance
35-
//.ConfigureUpdateUrl("https://raw.githubusercontent.com/MatthiWare/UpdateLib.TestApp.UpdateExample/master/Dev/updatefile.xml")
36-
.ConfigureUpdateUrl("http://matthiware.dev/UpdateLib/Dev/updatefile.xml")
37-
.ConfigureLogger((logger) => logger.LogLevel = LoggingLevel.Debug)
38-
.ConfigureLogger((logger) => logger.Writers.Add(new ConsoleLogWriter()))
39-
.ConfigureLogger((logger) => logger.Writers.Add(new FileLogWriter()))
40-
.ConfigureUnsafeConnections(true)
41-
.ConfigureCacheInvalidation(TimeSpan.FromSeconds(30))
42-
.ConfigureNeedsRestartBeforeUpdate(false)
43-
.ConfigureInstallationMode(InstallationMode.Shared)
44-
.Initialize();
45-
46-
Application.Run(new Form1());
47-
}
48-
catch (Exception e)
49-
{
50-
//for testing
51-
Console.WriteLine(e.ToString());
52-
MessageBox.Show(e.ToString());
53-
}
5440

5541
}
5642

UpdateLib/TestApp/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("0.4.0.0")]
36+
[assembly: AssemblyFileVersion("0.4.0.0")]

UpdateLib/UpdateLib.Tests/Tasks/DownloadManagerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void Before()
4242
}
4343

4444
[Test]
45-
public void Test()
45+
public void TestDownloadManager()
4646
{
4747

4848

UpdateLib/UpdateLib/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("0.3.0.0")]
36-
[assembly: AssemblyFileVersion("0.3.0.0")]
35+
[assembly: AssemblyVersion("0.4.0.0")]
36+
[assembly: AssemblyFileVersion("0.4.0.0")]

0 commit comments

Comments
 (0)