Skip to content

Commit

Permalink
Hopefully fixed update functionality.
Browse files Browse the repository at this point in the history
Unfortunately the only way to test this with Appveyor build patching is manually.
  • Loading branch information
sirdoombox committed Mar 11, 2020
1 parent 9ad7997 commit 517aefe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions PostScriptumMortarCalculator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
// 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("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.1")]
[assembly: AssemblyFileVersion("1.1")]
[assembly: AssemblyInformationalVersion("1.1")]
3 changes: 2 additions & 1 deletion PostScriptumMortarCalculator/Services/UpdateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public async Task<UpdateInfo> CheckForUpdate()
#if (!DEBUG)
var release = await m_client.Repository.Release.GetLatest(c_OWNER_NAME, c_REPO_NAME);
var releaseVersion = decimal.Parse(release.TagName);
var currentVersionString = Assembly.GetExecutingAssembly().GetName().Version.ToString();
var ver = Assembly.GetExecutingAssembly().GetName().Version;
var currentVersionString = $"{ver.Major}.{ver.Minor}";
var currentVersion = decimal.Parse(currentVersionString);
return new UpdateInfo(currentVersion, releaseVersion, c_RELEASE_PATH);
#endif
Expand Down

0 comments on commit 517aefe

Please sign in to comment.