peixue-dev/Archive/[一次性]重新编译小程序-2026-01-27.bat

37 lines
858 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
echo ========================================
echo 重新编译小程序 - 修复中文乱码
echo ========================================
echo.
cd /d "%~dp0..\..\peidu\uniapp"
echo [1/3] 清理旧的编译文件...
if exist "dist\dev\mp-weixin" (
rmdir /s /q "dist\dev\mp-weixin"
echo ✓ 已清理开发环境编译文件
)
if exist "dist\build\mp-weixin" (
rmdir /s /q "dist\build\mp-weixin"
echo ✓ 已清理生产环境编译文件
)
echo.
echo [2/3] 开始编译开发版本...
call npm run dev:mp-weixin
echo.
echo [3/3] 编译完成!
echo.
echo ========================================
echo 下一步操作:
echo 1. 打开微信开发者工具
echo 2. 导入项目peidu/uniapp/dist/dev/mp-weixin
echo 3. 验证中文显示是否正常
echo ========================================
echo.
pause