Skip to content

Commit

Permalink
сделано почти как было
Browse files Browse the repository at this point in the history
  • Loading branch information
prekel committed Feb 24, 2018
1 parent c1b4d60 commit e7e863b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion MyExpression.Console/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
// Номер построения
// Редакция
[assembly: AssemblyVersion("111.111.111.111")]
[assembly: AssemblyFileVersion("222.222.222.222")]
[assembly: AssemblyFileVersion("222.222.222.222")]
18 changes: 6 additions & 12 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@ install:
- ps: >-
$env:rev = git rev-list HEAD --count
$env:assembly_version1 = "$env:appveyor_build_version.$env:rev"
if ($env:appveyor_repo_tag -eq $True) { $env:product_version1 = ($env:appveyor_repo_tag_name).Substring(1) }
else { $env:product_version1 = "$env:appveyor_build_version.$env:rev-$env:appveyor_repo_branch-$env:appveyor_repo_commit" }
$env:assembly_version = "$env:appveyor_build_version.$env:rev"
Write-Host -Backgroundcolor Green -Foregroundcolor White "Assembly Version: $env:assembly_version1"
Write-Host -Backgroundcolor Green -Foregroundcolor White " Product Version: $env:product_version1"
Write-Host -Backgroundcolor Green -Foregroundcolor White "Assembly Version: $env:assembly_version"
$items = Get-ChildItem -Recurse -Include AssemblyInfo.*
foreach ($i in $items) { (Get-Content $i) -replace "111.111.111.111", $env:assembly_version1 | Set-Content $i }
foreach ($i in $items) { (Get-Content $i) -replace "111.111.111.111", $env:assembly_version | Set-Content $i }
foreach ($i in $items) { (Get-Content $i) -replace "222.222.222.222", $env:product_version1 | Set-Content $i }
foreach ($i in $items) { (Get-Content $i) -replace "222.222.222.222", $env:assembly_version | Set-Content $i }
before_build:
- ps: nuget restore MyExpression.sln
build:
Expand Down Expand Up @@ -52,7 +46,7 @@ deploy:
- provider: GitHub
tag: $(appveyor_repo_tag_name)
release: MyExpression $(appveyor_repo_tag_name)
description: $(appveyor_repo_tag_name) $(assembly_version1)
description: $(appveyor_repo_tag_name) $(assembly_version)
auth_token:
secure: Npd8Pdh2luH0INNPoAQXoPC2g71ZM39Ys1Cu842ZZaRFt6B45Or6vy1bV10x0oSn
artifact: MyExpression; MyExpression.Core.dll; MyExpression.Console.exe; MyExpression.Wpf
Expand All @@ -64,7 +58,7 @@ deploy:
- provider: GitHub
tag: $(appveyor_repo_tag_name)
release: MyExpression $(appveyor_repo_tag_name)
description: $(appveyor_repo_tag_name) $(assembly_version1)
description: $(appveyor_repo_tag_name) $(assembly_version)
auth_token:
secure: Npd8Pdh2luH0INNPoAQXoPC2g71ZM39Ys1Cu842ZZaRFt6B45Or6vy1bV10x0oSn
artifact: MyExpression; MyExpression.Core.dll; MyExpression.Console.exe; MyExpression.Wpf
Expand Down

0 comments on commit e7e863b

Please sign in to comment.