From 60780aa5c94e3fb95f2c86dd5bec4aa43155c19d Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 27 May 2021 12:16:23 +0200 Subject: [PATCH] Modifica x copia ANCHE dei file x versione --- .gitlab-ci.yml | 2 ++ MP.Stats/MP.Stats.csproj | 2 +- MP.Stats/post-build.ps1 | 5 ++++- VersNum.txt | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 VersNum.txt diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e31896ed..5170f603 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,6 +37,7 @@ variables: .nexusUpload: &nexusUpload - | Set-Alias mCurl C:\Windows\system32\curl.exe + $VersNumb = Get-Content "VersNum.txt" if($CI_COMMIT_BRANCH -eq "master") { $version = "stable" @@ -49,6 +50,7 @@ variables: ForEach ($File in $File2Send) { $FileName = Split-Path $File -leaf mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File http://nexus.steamware.net/repository/utility/$env:NEXUS_PATH/$version/$FileName + mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File http://nexus.steamware.net/repository/utility/$env:NEXUS_PATH/$version/$VersNum/$FileName } # 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/MP.Stats.csproj b/MP.Stats/MP.Stats.csproj index 4a2d536d..828323cb 100644 --- a/MP.Stats/MP.Stats.csproj +++ b/MP.Stats/MP.Stats.csproj @@ -4,7 +4,7 @@ net5.0 MP.Stats 826e877c-ba70-4253-84cb-d0b1cafd4440 - 1.0.2105.2711 + 1.0.2105.2712 diff --git a/MP.Stats/post-build.ps1 b/MP.Stats/post-build.ps1 index dc0fc8e1..8e1ed3fb 100644 --- a/MP.Stats/post-build.ps1 +++ b/MP.Stats/post-build.ps1 @@ -1,11 +1,14 @@ param([string]$ProjectDir, [string]$ProjectPath); +$VersNumb="..\VersNum.txt" $MajMin="1.0." $currentDate = get-date -format yyMM; $currentTime = get-date -format ddHH; $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 \ No newline at end of file +Set-Content -Path $ProjectPath -Value $csprojUpdated +Set-Content -Path $VersNumb -Value $currRelNum \ No newline at end of file diff --git a/VersNum.txt b/VersNum.txt new file mode 100644 index 00000000..c9045140 --- /dev/null +++ b/VersNum.txt @@ -0,0 +1 @@ +1.0.2105.2712