diff --git a/MP.IOC/MP.IOC.csproj b/MP.IOC/MP.IOC.csproj index fd260134..d421005b 100644 --- a/MP.IOC/MP.IOC.csproj +++ b/MP.IOC/MP.IOC.csproj @@ -22,4 +22,16 @@ + + + Always + + + Always + + + + + + diff --git a/MP.IOC/Resources/ChangeLog-original.html b/MP.IOC/Resources/ChangeLog-original.html new file mode 100644 index 00000000..bcf6bb36 --- /dev/null +++ b/MP.IOC/Resources/ChangeLog-original.html @@ -0,0 +1,25 @@ + + Modulo MP-IOC +

Versione: {{CURRENT-REL}}

+
Note di rilascio: + +
+
+ +
+
+ © Steamware 2006-2023 +
+
+ \ No newline at end of file diff --git a/MP.IOC/Resources/ChangeLog.html b/MP.IOC/Resources/ChangeLog.html new file mode 100644 index 00000000..07199d7e --- /dev/null +++ b/MP.IOC/Resources/ChangeLog.html @@ -0,0 +1,25 @@ + + Modulo MP-IOC +

Versione: 6.16.2302.1417

+
Note di rilascio: + +
+
+ +
+
+ © Steamware 2006-2023 +
+
+ diff --git a/MP.IOC/Resources/VersNum.txt b/MP.IOC/Resources/VersNum.txt new file mode 100644 index 00000000..a30e9552 --- /dev/null +++ b/MP.IOC/Resources/VersNum.txt @@ -0,0 +1 @@ +6.16.2302.1417 diff --git a/MP.IOC/Resources/logoSteamware.png b/MP.IOC/Resources/logoSteamware.png new file mode 100644 index 00000000..0958b50a Binary files /dev/null and b/MP.IOC/Resources/logoSteamware.png differ diff --git a/MP.IOC/Resources/manifest-original.xml b/MP.IOC/Resources/manifest-original.xml new file mode 100644 index 00000000..f95e0763 --- /dev/null +++ b/MP.IOC/Resources/manifest-original.xml @@ -0,0 +1,7 @@ + + + 1.0.0.0 + https://nexus.steamware.net/repository/SWS/{{DIRNAME}}/{{BRANCHNAME}}/{{PACKNAME}}.zip + https://nexus.steamware.net/repository/SWS/{{DIRNAME}}/{{BRANCHNAME}}/ChangeLog.html + false + diff --git a/MP.IOC/Resources/manifest.xml b/MP.IOC/Resources/manifest.xml new file mode 100644 index 00000000..06315e50 --- /dev/null +++ b/MP.IOC/Resources/manifest.xml @@ -0,0 +1,7 @@ + + + 6.16.2302.1417 + https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip + https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html + false + diff --git a/MP.IOC/logs/.placeholder b/MP.IOC/logs/.placeholder new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/MP.IOC/logs/.placeholder @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/MP.IOC/post-build.ps1 b/MP.IOC/post-build.ps1 new file mode 100644 index 00000000..153a559d --- /dev/null +++ b/MP.IOC/post-build.ps1 @@ -0,0 +1,32 @@ +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 +$currentDate = get-date -format yyMM; +$currentTime = get-date -format dHH; +$find = "(.|\n)*?"; +$currRelNum = $MajMin + $currentDate +"." + $currentTime +$replace = "" + $MajMin + $currentDate +"." + $currentTime + ""; +$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}}", "MP-SPEC" +$manData = $manData -replace "{{BRANCHNAME}}", "stable/LAST" +$manData = $manData -replace "{{PACKNAME}}", "MP.SPEC" +Set-Content -Path $FileManOut -Value $manData + +# replace x ChangeLog +$clogData = Get-Content $FileCLogIn +$clogData = $clogData -replace "{{CURRENT-REL}}", $currRelNum +Set-Content -Path $FileCLogOut -Value $clogData diff --git a/MP.SPEC/Resources/ChangeLog-original.html b/MP.SPEC/Resources/ChangeLog-original.html index 5e7a90f9..a2420fb9 100644 --- a/MP.SPEC/Resources/ChangeLog-original.html +++ b/MP.SPEC/Resources/ChangeLog-original.html @@ -19,7 +19,7 @@
- © Steamware 2006-2022 + © Steamware 2006-2023
\ No newline at end of file