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.
This commit is contained in:
@@ -37,7 +37,7 @@ set "OUTPUT=M:\App&Service\0 DD - Smart UP\signFLOW\Server\net8\%VERSION%"
|
|||||||
echo [0/3] Resolved build parameters
|
echo [0/3] Resolved build parameters
|
||||||
echo Project : %PROJECT%
|
echo Project : %PROJECT%
|
||||||
echo Version : %VERSION%
|
echo Version : %VERSION%
|
||||||
echo Output : %OUTPUT%
|
echo Output : !OUTPUT!
|
||||||
echo RID : %RID%
|
echo RID : %RID%
|
||||||
echo Framework: %FRAMEWORK%
|
echo Framework: %FRAMEWORK%
|
||||||
echo.
|
echo.
|
||||||
@@ -45,7 +45,7 @@ echo.
|
|||||||
echo [1/3] Cleaning previous publish output...
|
echo [1/3] Cleaning previous publish output...
|
||||||
if exist "%OUTPUT%" (
|
if exist "%OUTPUT%" (
|
||||||
rmdir /s /q "%OUTPUT%"
|
rmdir /s /q "%OUTPUT%"
|
||||||
echo Removed: %OUTPUT%
|
echo Removed: !OUTPUT!
|
||||||
) else (
|
) else (
|
||||||
echo Nothing to clean.
|
echo Nothing to clean.
|
||||||
)
|
)
|
||||||
@@ -59,6 +59,8 @@ dotnet publish "%PROJECT%" ^
|
|||||||
-f %FRAMEWORK% ^
|
-f %FRAMEWORK% ^
|
||||||
--self-contained true ^
|
--self-contained true ^
|
||||||
--runtime %RID% ^
|
--runtime %RID% ^
|
||||||
|
-p:WasmBuildNative=true ^
|
||||||
|
-m:4 ^
|
||||||
-o "%OUTPUT%"
|
-o "%OUTPUT%"
|
||||||
|
|
||||||
if %ERRORLEVEL% neq 0 (
|
if %ERRORLEVEL% neq 0 (
|
||||||
|
|||||||
Reference in New Issue
Block a user