@@ -33,6 +33,7 @@ $PackagePath = "$DistPath\package"
3333$ModulePath = " ${SrcPath} \WASimModule\WASimModuleProject\WASimCommander-Module\WASimCommander-Module.xml"
3434$ModuleDest = " ${DistPath} \module"
3535$ModulePackage = " ${PackagePath} \module"
36+ $DocsDistroPath = " $RootPath \..\WASimCommander-project\gh-pages"
3637
3738$testApps = @ {
3839 " $BuildPath \CS_BasicConsole\Release-$Platform \$Platform \Release\net6.0-windows" = " $PackagePath \bin\CS_BasicConsole" ;
@@ -98,13 +99,20 @@ if ($build.module)
9899 # -nopause
99100}
100101
102+ $copyOptions = @ (" /S" , " /A" , " /NP" , " /LOG+:"" $DistPath \copy.log"" " )
103+ Remove-Item " $DistPath \copy.log" - ErrorAction Ignore | Out-Null
104+
101105if ($build.docs )
102106{
103107 Write-Output " Generating documentation with Doxygen..."
104108 Push-Location - Path " ${DocsPath} "
105109 Remove-Item " ${DocsPath} \html" - Force - Recurse
106110 & $Doxygen " Doxyfile"
107111 Pop-Location
112+ if (Test-Path $DocsDistroPath ) {
113+ robocopy " ${DocsPath} \html" " $DocsDistroPath " / XD .git / MIR $copyOptions
114+ Write-Output " Copied docs to distro folder $DocsDistroPath "
115+ }
108116}
109117
110118if (-not $build.package ) {
@@ -118,9 +126,6 @@ $libStatic = "${libPath}\static"
118126$libDynamic = " ${libPath} \dynamic"
119127$libManaged = " ${libPath} \managed"
120128
121- $copyOptions = @ (" /S" , " /A" , " /NP" , " /LOG+:"" $DistPath \copy.log"" " )
122- Remove-Item " $DistPath \copy.log" - ErrorAction Ignore | Out-Null
123-
124129# include folder
125130robocopy " $SrcPath \include" " $PackagePath \include" $copyOptions / XF .* * .in
126131if ($LastExitCode -ge 8 ) { Write-Output ($LastExitCode ); Exit 1 }
@@ -185,13 +190,13 @@ $destZipFile = "$DistPath\${SERVER_NAME}-$fileVersion.zip"
185190if (Test-Path $destZipFile ) {
186191 Remove-Item $destZipFile - Force
187192}
188- & " $ZipUtil " a " $destZipFile " " $ModulePackage \*" - tzip
193+ & " $ZipUtil " a " $destZipFile " " $ModulePackage \*" " $PackagePath \CHANGELOG.md " - tzip
189194
190195$destZipFile = " $DistPath \${APP_GUI_NAME} -$fileVersion .zip"
191196if (Test-Path $destZipFile ) {
192197 Remove-Item $destZipFile - Force
193198}
194- & " $ZipUtil " a " $destZipFile " " $PackagePath \bin\${APP_GUI_NAME} " - tzip
199+ & " $ZipUtil " a " $destZipFile " " $PackagePath \bin\${APP_GUI_NAME} " " $PackagePath \CHANGELOG.md " - tzip
195200
196201
197202Write-Output (" `n C'est fini!" )
0 commit comments