update postbuild x REMAN

This commit is contained in:
Samuele Locatelli
2021-11-25 11:17:49 +01:00
parent 728a985ec5
commit c2c3b88f2d
9 changed files with 112 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
1.1.
+12
View File
@@ -23,4 +23,16 @@
<ProjectReference Include="..\NKC.Data\NKC.Data.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\" />
</ItemGroup>
<ItemGroup>
<None Update="post-build.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="powershell.exe -ExecutionPolicy Unrestricted -NoProfile -NonInteractive -File $(ProjectDir)\post-build.ps1 -ProjectDir $(ProjectDir) -ProjectPath $(ProjectPath)" />
</Target>
</Project>
+25
View File
@@ -0,0 +1,25 @@
<body>
<i>REMAN module for NKC</i>
<h4>Versione: {{CURRENT-REL}}</h4>
<br />
Release Note:
<ul>
<li>
<b>v.1.* &rarr;</b>
<ul>
<li>First release dotnet6</li>
<li>EFCore Integration</li>
<li>Materials + Remnant management</li>
<li>PickUp + Deposit + Search</li>
</ul>
</li>
</ul>
<div>
<div style="float: left;">
<img src="logoSteamware.png" />
</div>
<div style="float: right;">
<a href="https://www.steamware.net/IOT" target="_blank">&copy; Egalware 2006-{{YEAR}}</a>
</div>
</div>
</body>
+25
View File
@@ -0,0 +1,25 @@
<body>
<i>REMAN module for NKC</i>
<h4>Versione: 1.1.2111.2511</h4>
<br />
Release Note:
<ul>
<li>
<b>v.1.* &rarr;</b>
<ul>
<li>First release dotnet6</li>
<li>EFCore Integration</li>
<li>Materials + Remnant management</li>
<li>PickUp + Deposit + Search</li>
</ul>
</li>
</ul>
<div>
<div style="float: left;">
<img src="logoSteamware.png" />
</div>
<div style="float: right;">
<a href="https://www.steamware.net/IOT" target="_blank">&copy; Egalware 2006-2021</a>
</div>
</div>
</body>
+1
View File
@@ -0,0 +1 @@
1.1.2111.2511
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.0.0.0</version>
<url>https://nexus.steamware.net/repository/SWS/{{DIRNAME}}/{{BRANCHNAME}}/{{PACKNAME}}.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/{{DIRNAME}}/{{BRANCHNAME}}/ChangeLog.html</changelog>
<mandatory>false</mandatory>
</item>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.1.2111.2511</version>
<url>https://nexus.steamware.net/repository/SWS/REMAN/stable/LAST/REMAN.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/REMAN/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
</item>
+34
View File
@@ -0,0 +1,34 @@
param([string]$ProjectDir, [string]$ProjectPath);
$FileMajMin = "..\MajMin.vers"
$FileVers = "Resources\VersNum.txt"
$FileManIn = "Resources\manifest-original.xml"
$FileManOut = "Resources\manifest.xml"
$FileCLogIn = "Resources\ChangeLog-original.html"
$FileCLogOut = "Resources\ChangeLog.html"
$MajMin = Get-Content $FileMajMin # "6.14."
$currentDate = get-date -format yyMM;
$currentTime = get-date -format ddHH;
$currentYear = get-date -format yyyy;
$find = "<Version>(.|\n)*?</Version>";
$currRelNum = $MajMin + $currentDate +"." + $currentTime
$replace = "<Version>" + $MajMin + $currentDate +"." + $currentTime + "</Version>";
$csproj = Get-Content $ProjectPath
$csprojUpdated = $csproj -replace $find, $replace
Set-Content -Path $ProjectPath -Value $csprojUpdated
Set-Content -Path $FileVers -Value $currRelNum
# replace x manifest
$manData = Get-Content $FileManIn
$manData = $manData -replace "1.0.0.0", $currRelNum
$manData = $manData -replace "{{DIRNAME}}", "REMAN"
$manData = $manData -replace "{{BRANCHNAME}}", "stable/LAST"
$manData = $manData -replace "{{PACKNAME}}", "REMAN"
Set-Content -Path $FileManOut -Value $manData
# replace x ChangeLog
$clogData = Get-Content $FileCLogIn
$clogData = $clogData -replace "{{CURRENT-REL}}", $currRelNum
$clogData = $clogData -replace "{{YEAR}}", $currentYear
Set-Content -Path $FileCLogOut -Value $clogData