Browse Source

add package.bat

Warr 3 years ago
parent
commit
a88a506a99
2 changed files with 5 additions and 0 deletions
  1. 2 0
      Publish.ps1
  2. 3 0
      package.bat

+ 2 - 0
Publish.ps1

@@ -19,6 +19,8 @@ Copy-Item ../WingSessionModule/src/bin/Release/net6.0/win-x64/WingSessionModule.
 
 dotnet publish "../WingEmailModule/src/WingEmailModule.csproj" -r win-x64 -c Release --no-self-contained 
 Copy-Item ../WingEmailModule/src/bin/Release/net6.0/win-x64/WingEmailModule.dll -Destination ../wing/server/InProcessService
+IF (-not(Test-Path ../wing/server/EmailTemplate/)) { New-Item -Path ../wing/server/ -Name EmailTemplate -Type Directory -force }
+Copy-Item ../WingEmailModule/src/bin/Release/net6.0/win-x64/EmailTemplate/* -Destination ../wing/server/EmailTemplate
 
 ### netservice modules
 dotnet publish "../WingUserModule/src/WingUserModule.csproj" -r win-x64 -c Release --no-self-contained 

+ 3 - 0
package.bat

@@ -0,0 +1,3 @@
+if not exist ..\..\..\..\Builds\Wing\%1\WingCloudServer mkdir ..\..\..\..\Builds\Wing\%1\WingCloudServer
+
+xcopy .\server\*.* ..\..\..\..\Builds\Wing\%1\WingCloudServer\*.*  /E /Y