diff --git a/Resources/LogoEgw.png b/Resources/LogoEgw.png new file mode 100644 index 0000000..8d5a7c1 Binary files /dev/null and b/Resources/LogoEgw.png differ diff --git a/Resources/MainVers.txt b/Resources/MainVers.txt new file mode 100644 index 0000000..3e205f2 --- /dev/null +++ b/Resources/MainVers.txt @@ -0,0 +1 @@ +0.8. diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt new file mode 100644 index 0000000..22a1406 --- /dev/null +++ b/Resources/VersNum.txt @@ -0,0 +1 @@ +0.8.2307.2416 diff --git a/SMGen/post-build.ps1 b/SMGen/post-build.ps1 new file mode 100644 index 0000000..13e8b26 --- /dev/null +++ b/SMGen/post-build.ps1 @@ -0,0 +1,15 @@ +param([string]$ProjectDir, [string]$ProjectPath); + +$MainVers="..\Resources\MainVers.txt" +$FileVers="..\Resources\VersNum.txt" +$MajMin=Get-Content $MainVers +$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 +Set-Content -Path $FileVers -Value $currRelNum