20 fixes: mutex poisoning recovery, clickthrough shutdown, audio cleanup, config corruption, GIF aspect ratio, ffmpeg crash detection, cancel export, discard confirm, thumbnail cache, keyboard nav, right-click tracking, multi-monitor overlay, click injection fix, update script robustness, effect cleanup, concat guard, dead code removal

This commit is contained in:
2026-05-27 19:14:33 +03:00
parent f0775b8ff0
commit e4141f8be8
10 changed files with 310 additions and 140 deletions
+12
View File
@@ -106,8 +106,20 @@ pub fn write_apply_script(app_dir: &Path) -> Result<PathBuf> {
let body = format!(
"@echo off\r\n\
timeout /t 1 /nobreak >nul\r\n\
if not exist \"%~dp0ByteSize.new.exe\" (\r\n\
echo Update file not found\r\n\
pause\r\n\
del \"%~f0\"\r\n\
exit /b 1\r\n\
)\r\n\
del \"%~dp0{exe}\"\r\n\
move /Y \"%~dp0ByteSize.new.exe\" \"%~dp0{exe}\" >nul\r\n\
if errorlevel 1 (\r\n\
echo Failed to replace executable\r\n\
pause\r\n\
del \"%~f0\"\r\n\
exit /b 1\r\n\
)\r\n\
start \"\" \"%~dp0{exe}\"\r\n\
del \"%~f0\"\r\n",
exe = exe_name