From d0ddf00fc2fd5f632bacfc10aff04d666d73e190 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 17 Nov 2026 14:45:09 +0100 Subject: [PATCH] Use delayed expansion and enhance publish options Updated the `publish.bat` script to use delayed expansion (`!OUTPUT!`) for the `OUTPUT` variable to ensure correct value handling in block contexts. Updated the "Removed" message to use delayed expansion for consistency. Added two new parameters to the `dotnet publish` command: - `-p:WasmBuildNative=true` to enable native WebAssembly builds. - `-m:4` to set the maximum degree of parallelism to 4 for improved build performance. --- EnvelopeGenerator.Server/publish.bat | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/EnvelopeGenerator.Server/publish.bat b/EnvelopeGenerator.Server/publish.bat index bbbb7edd..90abf327 100644 --- a/EnvelopeGenerator.Server/publish.bat +++ b/EnvelopeGenerator.Server/publish.bat @@ -37,7 +37,7 @@ set "OUTPUT=M:\App&Service\0 DD - Smart UP\signFLOW\Server\net8\%VERSION%" echo [0/3] Resolved build parameters echo Project : %PROJECT% echo Version : %VERSION% -echo Output : %OUTPUT% +echo Output : !OUTPUT! echo RID : %RID% echo Framework: %FRAMEWORK% echo. @@ -45,7 +45,7 @@ echo. echo [1/3] Cleaning previous publish output... if exist "%OUTPUT%" ( rmdir /s /q "%OUTPUT%" - echo Removed: %OUTPUT% + echo Removed: !OUTPUT! ) else ( echo Nothing to clean. ) @@ -59,6 +59,8 @@ dotnet publish "%PROJECT%" ^ -f %FRAMEWORK% ^ --self-contained true ^ --runtime %RID% ^ + -p:WasmBuildNative=true ^ + -m:4 ^ -o "%OUTPUT%" if %ERRORLEVEL% neq 0 (