Skip to content

Commit

Permalink
v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tpill90 committed May 29, 2023
1 parent efb0612 commit 4c01113
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions BattleNetPrefill/BattleNetPrefill.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifiers>win-x64;linux-x64;linux-arm64;osx-x64</RuntimeIdentifiers>
Expand All @@ -8,7 +8,7 @@

<AssemblyName>BattleNetPrefill</AssemblyName>
<RootNamespace>BattleNetPrefill</RootNamespace>
<VersionPrefix>1.5.0</VersionPrefix>
<VersionPrefix>1.6.0</VersionPrefix>
<Authors>tpill90</Authors>

<!-- Code analysis settings -->
Expand Down
6 changes: 3 additions & 3 deletions _publish-release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Push-Location $PSScriptRoot
clear

# Getting current version
[xml]$parsedCsproj = Get-Content .\SteamPrefill\SteamPrefill.csproj
[xml]$parsedCsproj = Get-Content .\BattleNetPrefill\BattleNetPrefill.csproj
$versionPrefix = $parsedCsproj.Project.PropertyGroup.VersionPrefix
$currentVersion = "$versionPrefix".Trim();
Write-Color "Current version: ", $currentVersion -Color White, Yellow
Expand All @@ -11,9 +11,9 @@ Write-Color "Current version: ", $currentVersion -Color White, Yellow
$newVersion = Read-Host "Enter new version, with no leading 'v'. Ex. '1.2.3'"

# Updating csproj version
$currentContent = Get-Content -Path .\SteamPrefill\SteamPrefill.csproj -Raw
$currentContent = Get-Content -Path .\BattleNetPrefill\BattleNetPrefill.csproj -Raw
$currentContent = $currentContent.Replace('<VersionPrefix>' + $currentVersion, '<VersionPrefix>' + $newVersion)
Set-Content -Value $currentContent -Path .\SteamPrefill\SteamPrefill.csproj -NoNewline
Set-Content -Value $currentContent -Path .\BattleNetPrefill\BattleNetPrefill.csproj -NoNewline

# Committing + tag. Pushing the tag is what creates the release.
git commit -a -m "v$newVersion"
Expand Down

0 comments on commit 4c01113

Please sign in to comment.