Winify – Diff between revs 44 and 48
?pathlinks?
Rev 44 | Rev 48 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | using System; |
1 | using System; |
|
2 | using System.Collections.Concurrent; |
2 | using System.Collections.Concurrent; |
|
3 | using System.ComponentModel; |
3 | using System.ComponentModel; |
|
4 | using System.Drawing; |
4 | using System.Drawing; |
|
5 | using System.IO; |
5 | using System.IO; |
|
- | 6 | using System.Net; |
||
6 | using System.Reflection; |
7 | using System.Reflection; |
|
7 | using System.Text; |
8 | using System.Text; |
|
8 | using System.Threading; |
9 | using System.Threading; |
|
9 | using System.Threading.Tasks; |
10 | using System.Threading.Tasks; |
|
10 | using System.Windows.Forms; |
11 | using System.Windows.Forms; |
|
Line 100... | Line 101... | |||
100 | |
101 | |
|
101 | _sparkle = new SparkleUpdater("https://winify.grimore.org/update/appcast.xml", |
102 | _sparkle = new SparkleUpdater("https://winify.grimore.org/update/appcast.xml", |
|
102 | new Ed25519Checker(SecurityMode.Strict, "LonrgxVjSF0GnY4hzwlRJnLkaxnDn2ikdmOifILzLJY=")) |
103 | new Ed25519Checker(SecurityMode.Strict, "LonrgxVjSF0GnY4hzwlRJnLkaxnDn2ikdmOifILzLJY=")) |
|
103 | { |
104 | { |
|
104 | UIFactory = new UIFactory(icon), |
105 | UIFactory = new UIFactory(icon), |
|
- | 106 | RelaunchAfterUpdate = true, |
||
105 | RelaunchAfterUpdate = true |
107 | SecurityProtocolType = SecurityProtocolType.Tls12 |
|
106 | }; |
108 | }; |
|
107 | _sparkle.StartLoop(true, true); |
109 | _sparkle.StartLoop(true, true); |
|
Line 108... | Line 110... | |||
108 | } |
110 | } |
|
Line 232... | Line 234... | |||
232 | |
234 | |
|
233 | private async void UpdateToolStripMenuItem_Click(object sender, EventArgs e) |
235 | private async void UpdateToolStripMenuItem_Click(object sender, EventArgs e) |
|
234 | { |
236 | { |
|
235 | // Manually check for updates, this will not show a ui |
237 | // Manually check for updates, this will not show a ui |
|
- | 238 | var result = await _sparkle.CheckForUpdatesQuietly(); |
||
236 | var result = await _sparkle.CheckForUpdatesQuietly(); |
239 | var updates = result.Updates; |
|
237 | if (result.Status == UpdateStatus.UpdateAvailable) |
240 | if (result.Status == UpdateStatus.UpdateAvailable) |
|
238 | { |
241 | { |
|
239 | // if update(s) are found, then we have to trigger the UI to show it gracefully |
242 | // if update(s) are found, then we have to trigger the UI to show it gracefully |
|
240 | _sparkle.ShowUpdateNeededUI(); |
243 | _sparkle.ShowUpdateNeededUI(); |