fix batch: missing cancel_export, overlay lifecycle, audio safety, gif encoding, UI polish
- add cancel_export command with AtomicBool flag - shut down overlay clickthrough poll thread on app exit - move set_overlay_clickthrough after capture starts (not before) - add fps filter to capture pipeline to avoid bloated intermediate files - add scale.max(0.1) floor in gif balanced mode - warn when gif encode can't meet target after retries - increase update apply script timeout and add retry loop - add SAFETY comments to all 21 unsafe blocks in audio.rs - remove dead output_path variable in capture.rs - remove no-op gif_colors.min() call in encode retry - add error toast dismiss button with 8-second auto-dismiss - remove test fps values (1,2,5,10) from idle screen - add duplicate hotkey validation in settings - change picker window to 2560x1440 - add gitignore exception for src-tauri/gen/schemas/
This commit is contained in:
@@ -105,14 +105,13 @@ pub fn write_apply_script(app_dir: &Path) -> Result<PathBuf> {
|
||||
.unwrap_or_else(|| "ByteSize.exe".to_string());
|
||||
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\
|
||||
timeout /t 3 /nobreak >nul\r\n\
|
||||
:retry\r\n\
|
||||
del \"%~dp0{exe}\" 2>nul\r\n\
|
||||
if exist \"%~dp0{exe}\" (\r\n\
|
||||
timeout /t 2 /nobreak >nul\r\n\
|
||||
goto retry\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\
|
||||
|
||||
Reference in New Issue
Block a user