diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d1c354f3..456a8dd1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,7 +39,8 @@ variables: Set-Alias mCurl C:\Windows\system32\curl.exe $currentDate = get-date -format yyMM; $currentTime = get-date -format ddHH; - $VersNumb = $env:VERS_MAIN + "." + $currentDate +"." + $currentTime + $VersNumb = Get-Content "Resources\VersNum.txt" + echo "Curr Version: $VersNumb" if($CI_COMMIT_BRANCH -eq "master") { $version = "stable" @@ -53,7 +54,10 @@ variables: $FileName = Split-Path $File -leaf mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File http://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/$FileName mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File http://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/$VersNum/$FileName - } + } + mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file "Resources\manifest.xml" http://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/manifest.xml + mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file "Resources\ChangeLog.html" http://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/ChangeLog.html + # mCurl -v -u $env:NEXUS_USER:$env:NEXUS_PASSWD --upload-file bin/release/$env:APP_NAME.zip $env:NEXUS_SERVER/utility/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.zip diff --git a/MP.Stats/post-build.ps1 b/MP.Stats/post-build.ps1 index 8e1ed3fb..08dc18a4 100644 --- a/MP.Stats/post-build.ps1 +++ b/MP.Stats/post-build.ps1 @@ -1,6 +1,7 @@ param([string]$ProjectDir, [string]$ProjectPath); -$VersNumb="..\VersNum.txt" +$FileVers="..\Resources\VersNum.txt" +$FileMani="..\Resources\manifest.xml" $MajMin="1.0." $currentDate = get-date -format yyMM; $currentTime = get-date -format ddHH; @@ -11,4 +12,12 @@ $csproj = Get-Content $ProjectPath $csprojUpdated = $csproj -replace $find, $replace Set-Content -Path $ProjectPath -Value $csprojUpdated -Set-Content -Path $VersNumb -Value $currRelNum \ No newline at end of file +Set-Content -Path $FileVers -Value $currRelNum + +# replace conf x manifest +$manData = Get-Content $FileMani +$manData = $manData -replace "1.0.0.0", $currRelNum +$manData = $manData -replace "{{DIRNAME}}", "MP-STATS" +$manData = $manData -replace "{{BRANCHNAME}}", "stable" +$manData = $manData -replace "{{PACKNAME}}", "MP.Stats" +Set-Content -Path $FileMani -Value $manData diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html new file mode 100644 index 00000000..9d23cb37 --- /dev/null +++ b/Resources/ChangeLog.html @@ -0,0 +1,27 @@ +
+ Modulo statistiche MAPO +
+