Skip to content

Commit

Permalink
Fixes task script
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhas committed Sep 2, 2018
1 parent 3616a44 commit 552f0d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions task.ps1
Expand Up @@ -46,11 +46,12 @@ function BumpVersion
[Parameter(Mandatory = $true)][string]$ver
)

(Get-Content ".\Properties\AssemblyInfo.cs") -replace "AssemblyVersion(`"[\d\.]*`")", "AssemblyVersion(`"$($ver)`")" |
Set-Content ".\Properties\AssemblyInfo.cs"
$prop = Get-Content ".\Properties\AssemblyInfo.cs" -Encoding UTF8
$prop -replace 'AssemblyVersion\("[\d\.]*"\)', "AssemblyVersion(`"$ver`")" |
Set-Content ".\Properties\AssemblyInfo.cs" -Encoding UTF8

$skinDef = Get-Content ".\skinDefinition.json" | ConvertFrom-Json
$skinDef.version = $ver
$skinDef.output = "./dist/PowershellRM_$($ver).rmskin"
$skinDef | ConvertTo-Json | Set-Content ".\skinDefinition.json"
$skinDef | ConvertTo-Json | Set-Content ".\skinDefinition.json" -Encoding UTF8
}

0 comments on commit 552f0d3

Please sign in to comment.