Files
DPM/scripts/build-win.cmd
T
Pine d70d9d5fbd feat: add SFX volume control and improve audio feedback
- Implemented separate sound effects volume control in settings.
- Updated backend to handle new `sfx_volume` parameter.
- Enhanced UI to include sound effects volume slider in admin panel.
- Integrated sound effects for various user interactions (clicks, navigation, alerts).
- Added a new global sound engine to manage audio synthesis without external files.
- Updated documentation for Docker deployment and Windows packaging.
- Refactored audio context management to ensure sound effects are available post user interaction.
2026-08-18 07:14:13 +08:00

41 lines
1.6 KiB
Batchfile
Raw 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
REM ============================================================
REM Windows 一键打包脚本(Tauri
REM 解决「error: failed to remove file ... .exe / 拒绝访问(os error 5)」:
REM 本应用关闭窗口=最小化(进程常驻),旧 exe 会被运行进程锁定无法覆盖。
REM 打包前自动结束占用进程,再执行 tauri build。
REM
REM 用法:双击运行,或在项目根目录执行 scripts\build-win.cmd
REM ============================================================
chcp 65001 >nul
setlocal
echo.
echo [1/3] 结束占用旧 exe 的进程(无则跳过)...
taskkill /f /im "昆明大学生创业园展播系统.exe" >nul 2>&1
taskkill /f /im "云超服昆创园OPC运营中心.exe" >nul 2>&1
taskkill /f /im "dpm.exe" >nul 2>&1
echo 已尝试清理。
echo.
echo [2/3] 清理 Rust 增量产物中的旧 exe 残留(可选,失败不影响)...
if exist "src-tauri\target\release\昆明大学生创业园展播系统.exe" (
del /f /q "src-tauri\target\release\昆明大学生创业园展播系统.exe" >nul 2>&1
)
echo.
echo [3/3] 开始 Tauri 打包(yarn tauri build...
call yarn tauri build
if errorlevel 1 (
echo.
echo [错误] 打包失败。若仍报「拒绝访问」,请:
echo 1. 确认任务管理器中没有 dpm/昆明大学生创业园 相关进程
echo 2. 将 D:\MyCode\DPM\src-tauri\target 加入杀毒软件排除目录
echo 3. 关闭杀毒实时防护后重试
exit /b 1
)
echo.
echo [完成] 打包成功!安装包位于 src-tauri\target\release\bundle\
endlocal