Skip to content

Commit

Permalink
Merge pull request #31 from hass-agent/development
Browse files Browse the repository at this point in the history
fixes minor bug with the project files resulting in git hash being added to product version
removes unused variable which caused UpdateManager to throw exception with malformed version created by above bug
  • Loading branch information
amadeo-alex authored Dec 28, 2023
2 parents 952db67 + b693c7d commit e08c937
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/HASS.Agent.Installer/InstallerScript.iss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

; Standard installation constants
#define MyAppName "HASS.Agent"
#define MyAppVersion "2.0.0"
#define MyAppVersion "2.0.1"
#define MyAppPublisher "HASS.Agent Team"
#define MyAppURL "https://hass-agent.io"
#define MyAppExeName "HASS.Agent.exe"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<UserSecretsId>dotnet-HASSAgentSatelliteService-6E4FA50A-3AC9-4E66-8671-9FAB92372154</UserSecretsId>
<PlatformTarget>x64</PlatformTarget>
<Platforms>x64;x86</Platforms>
<Version>2.0.0</Version>
<Version>2.0.1</Version>
<Company>HASS.Agent Team</Company>
<Product>HASS.Agent Satellite Service</Product>
<AssemblyName>HASS.Agent.Satellite.Service</AssemblyName>
Expand All @@ -17,10 +17,11 @@
<PackageProjectUrl>https://github.com/hass-agent/HASS.Agent</PackageProjectUrl>
<RepositoryUrl>https://github.com/hass-agent/HASS.Agent</RepositoryUrl>
<PackageIcon>hass.png</PackageIcon>
<AssemblyVersion>2.0.0</AssemblyVersion>
<AssemblyVersion>2.0.1</AssemblyVersion>
<ApplicationIcon>hass.ico</ApplicationIcon>
<FileVersion>2.0.0</FileVersion>
<FileVersion>2.0.1</FileVersion>
<SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 4 additions & 3 deletions src/HASS.Agent/HASS.Agent.Shared/HASS.Agent.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<Description>Shared functions and models for the HASS.Agent platform.</Description>
<PackageProjectUrl>https://github.com/hass-agent/HASS.Agent</PackageProjectUrl>
<RepositoryUrl>https://github.com/hass-agent/HASS.Agent</RepositoryUrl>
<AssemblyVersion></AssemblyVersion>
<FileVersion></FileVersion>
<Version>2.0.0</Version>
<AssemblyVersion>2.0.1</AssemblyVersion>
<FileVersion>2.0.1</FileVersion>
<Version>2.0.1</Version>
<PackageIcon>logo_128.png</PackageIcon>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<ApplicationIcon>hassagent.ico</ApplicationIcon>
Expand All @@ -22,6 +22,7 @@
<Nullable>disable</Nullable>
<DebugType>full</DebugType>
<SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 4 additions & 3 deletions src/HASS.Agent/HASS.Agent/HASS.Agent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PlatformTarget>x64</PlatformTarget>
<Platforms>x64;x86</Platforms>
<DebugType>full</DebugType>
<Version>2.0.0</Version>
<Version>2.0.1</Version>
<Company>HASS.Agent Team</Company>
<Authors>HASS.Agent Team</Authors>
<Description>Windows-based client for Home Assistant. Provides notifications, quick actions, commands, sensors and more. </Description>
Expand All @@ -22,15 +22,16 @@
<RepositoryUrl>https://github.com/hass-agent/HASS.Agent</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<ApplicationManifest>app.manifest</ApplicationManifest>
<AssemblyVersion>2022.15.0</AssemblyVersion>
<FileVersion>2022.15.0</FileVersion>
<AssemblyVersion>2.0.1</AssemblyVersion>
<FileVersion>2.0.1</FileVersion>
<RootNamespace>HASS.Agent</RootNamespace>
<WindowsPackageType>None</WindowsPackageType>
<RuntimeIdentifiers>win10-x64;win10-x86</RuntimeIdentifiers>
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
<EnableCoreMrtTooling Condition=" '$(BuildingInsideVisualStudio)' != 'true' ">false</EnableCoreMrtTooling>
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions src/HASS.Agent/HASS.Agent/Managers/UpdateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ internal static class UpdateManager
{
private static readonly DateTimeOffset s_releaseCutoff = new(2023, 11, 30, 23, 59, 59, TimeSpan.Zero);

private static readonly Version CurrentVersion = Version.Parse(Variables.Version.Split('-').First());

/// <summary>
/// Initialize initial and periodic update checking
/// </summary>
Expand Down

0 comments on commit e08c937

Please sign in to comment.