修改部署脚本

This commit is contained in:
tian 2026-03-19 09:45:44 +08:00
parent 8b58f2853e
commit 4b3c20a4f7
2 changed files with 13 additions and 6 deletions

View File

@ -1,6 +1,7 @@
@echo off
setlocal
:: 如果 Navisworks 正在运行,关闭它以释放 DLL 锁定
:: Stop Navisworks to release locked plugin DLLs.
taskkill /F /IM Roamer.exe 2>nul
if %errorlevel% == 0 (
echo Navisworks process terminated.
@ -8,16 +9,18 @@ if %errorlevel% == 0 (
)
set "TARGET_DIR=%PROGRAMDATA%\Autodesk\Navisworks Manage 2026\plugins\TransportPlugin"
set "BUILD_DIR=bin\x64\Release"
if not exist "%TARGET_DIR%" mkdir "%TARGET_DIR%"
copy "bin\x64\Release\TransportPlugin.dll" "%TARGET_DIR%\" >nul
copy "%BUILD_DIR%\*.dll" "%TARGET_DIR%\" >nul
echo Plugin DLLs deployed.
:: 复制resources文件夹包含chart.js等本地资源
if exist "bin\x64\Release\resources" (
:: Copy bundled resources.
if exist "%BUILD_DIR%\resources" (
if not exist "%TARGET_DIR%\resources" mkdir "%TARGET_DIR%\resources"
copy "bin\x64\Release\resources\*" "%TARGET_DIR%\resources\" >nul
xcopy "%BUILD_DIR%\resources\*" "%TARGET_DIR%\resources\" /E /I /Y /Q >nul
echo Resources folder deployed.
)
echo Plugin deployed successfully!
echo Plugin deployed successfully!

View File

@ -2,6 +2,10 @@
## 功能点
### [2026/3/18]
1. [x](功能)增加轨上路径(角度可倾斜)
### [2026/3/11]
1. [x] 功能给“导出剖面盒”增加导出nwd文件的选项