Skip to content

Commit

Permalink
For v0.1.2.4
Browse files Browse the repository at this point in the history
- Disable auto-update
  • Loading branch information
semir4in committed Jul 1, 2020
1 parent c1818e2 commit dbe083b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
19 changes: 10 additions & 9 deletions bayoen-star-exe/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public MainWindow()

this.CheckContainers();
this.ToMonitors();
this.CheckUpdate();
//this.CheckUpdate();
this.IsStatOn = true;
}

Expand Down Expand Up @@ -1865,13 +1865,14 @@ private void InitializeVariables()
{
if (this.IsGoogleOn)
{
using (System.Net.WebClient web = new System.Net.WebClient() { Encoding = Encoding.UTF8 })
{
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
string rawString = web.DownloadString("https://github.com/bayoen/bayoen-star-exe/releases/latest");
string latestVersion = System.Text.RegularExpressions.Regex.Match(rawString, @"<a class=""js-selected-navigation-item selected reponav-item""((.|\n)*?)>", System.Text.RegularExpressions.RegexOptions.IgnoreCase).Groups[1].Value.Split('/').Last();
this.latestVersion = Version.Parse(latestVersion.Remove(latestVersion.Length - 1));
}
// Disabled
//using (System.Net.WebClient web = new System.Net.WebClient() { Encoding = Encoding.UTF8 })
//{
// System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
// string rawString = web.DownloadString("https://github.com/bayoen/bayoen-star-exe/releases/latest");
// string latestVersion = System.Text.RegularExpressions.Regex.Match(rawString, @"<a class=""js-selected-navigation-item selected reponav-item""((.|\n)*?)>", System.Text.RegularExpressions.RegexOptions.IgnoreCase).Groups[1].Value.Split('/').Last();
// this.latestVersion = Version.Parse(latestVersion.Remove(latestVersion.Length - 1));
//}
}

this.pptMemory = new VAMemory(pptName);
Expand Down Expand Up @@ -2270,7 +2271,7 @@ private void CheckUpdate()
else // if (version > LatestVersion)
{
// in Dev.: do nothing
this.Notify.ShowBalloonTip(2000, "This is version in development!", "Is everything okay?", wf::ToolTipIcon.None);
//this.Notify.ShowBalloonTip(2000, "This is version in development!", "Is everything okay?", wf::ToolTipIcon.None);

//this.DoOldVersion();
}
Expand Down
4 changes: 2 additions & 2 deletions bayoen-star-exe/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.2.3")]
[assembly: AssemblyFileVersion("0.1.2.3")]
[assembly: AssemblyVersion("0.1.2.4")]
[assembly: AssemblyFileVersion("0.1.2.4")]

0 comments on commit dbe083b

Please sign in to comment.