| 12345678910111213141516171819202122232425262728 |
- @echo off
- chcp 65001 >nul
- cd /d "%~dp0"
- set NAME=智慧运营中台-分发包
- set OUT=..\%NAME%
- set ZIP=..\%NAME%.zip
- if exist "%OUT%" rmdir /s /q "%OUT%"
- if exist "%ZIP%" del /q "%ZIP%"
- mkdir "%OUT%"
- for %%f in (server.js napos-service.js reports-store.js reports-mcp.js nl-query.js report-html.js imageMeta.js package.json package-lock.json config.example.json README.md 启动.bat) do (
- if exist "%%f" copy /y "%%f" "%OUT%\" >nul
- )
- robocopy public "%OUT%\public" /E /NFL /NDL /NJH /NJS >nul
- robocopy napos "%OUT%\napos" /E /NFL /NDL /NJH /NJS >nul
- robocopy server "%OUT%\server" /E /NFL /NDL /NJH /NJS >nul
- robocopy scripts "%OUT%\scripts" /E /NFL /NDL /NJH /NJS >nul
- robocopy node_modules "%OUT%\node_modules" /E /NFL /NDL /NJH /NJS >nul
- powershell -NoProfile -Command "Compress-Archive -LiteralPath '%OUT%' -DestinationPath '%ZIP%' -Force"
- if exist "%ZIP%" rmdir /s /q "%OUT%"
- echo 已生成分发包: %ZIP%
- echo 包内不含 config.json / session.json / manual-shops.json / data/
- echo (API Key、Cookie、报表数据只留在你本机)
- echo 对方解压后双击 启动.bat 即可,首次启动自动生成其本机配置。
- pause
|