개정판 8de0cf00
자동업데이트 외부에서 연결 가능하도록 수정
Change-Id: I7dae8d0c0bf5519bdbd0341308545e5e1ad4361e
MarkusAutoUpdate/src/NetSparkle.Samples.NetFramework.WPF/MainWindow.xaml.cs | ||
---|---|---|
1 |
using NetSparkle.TestAppWPF.Common; |
|
1 | 2 |
using NetSparkleUpdater.Events; |
2 | 3 |
using NetSparkleUpdater.SignatureVerifiers; |
3 | 4 |
using System; |
... | ... | |
126 | 127 | |
127 | 128 |
viewModel.UpdateVersion = castitem.Version; |
128 | 129 |
System.Threading.Thread.Sleep(1000); |
130 |
|
|
131 |
if (App.IsExternal) |
|
132 |
{ |
|
133 |
if (!string.IsNullOrWhiteSpace(castitem.DownloadLink)) |
|
134 |
{ |
|
135 |
var uri = UriHelper.ChangeAddress(new Uri(castitem.DownloadLink), App.ExternalAddress); |
|
136 |
castitem.DownloadLink = uri.ToString(); |
|
137 |
} |
|
138 | ||
139 |
if (!string.IsNullOrWhiteSpace(castitem.ReleaseNotesLink)) |
|
140 |
{ |
|
141 |
var uri2 = UriHelper.ChangeAddress(new Uri(castitem.ReleaseNotesLink), App.ExternalAddress); |
|
142 |
castitem.ReleaseNotesLink = uri2.ToString(); |
|
143 |
} |
|
144 |
|
|
145 |
} |
|
129 | 146 | |
130 | 147 |
await _sparkle.InitAndBeginDownload(castitem); |
131 | 148 |
내보내기 Unified diff