WhisperJAV Upgrade Guide¶
This guide covers how to upgrade WhisperJAV to the latest version.
GUI Users (Recommended)¶
The GUI will automatically check for updates on startup and display a notification banner when a new version is available.
Update Indicator¶
When an update is available, a small indicator appears in the header bar showing the new version number (e.g., "v1.8.10 available"). Click it to view the changelog and release notes.
For critical updates only, a full colored banner appears at the top of the window to ensure you see it.
One-Click Update¶
- Click the update indicator in the header (or the banner for critical updates)
- View the changelog, then click Update Now
- Confirm the update in the dialog
- The GUI will close automatically
- The update runs in the background
- The GUI relaunches when complete
CLI Users¶
Use the whisperjav-upgrade command for command-line upgrades.
Check for Updates¶
This shows if an update is available without installing it.
Interactive Upgrade¶
You'll be prompted to confirm before the upgrade begins.
Non-Interactive Upgrade¶
Automatically confirms the upgrade (useful for scripts).
Hot-Patch Mode¶
Only updates the WhisperJAV package itself, skipping dependency installation. This is faster and safer for post-release patches (e.g., 1.7.4 → 1.7.4.post1).
Show Script Version¶
Force Update Check¶
Bypasses the 6-hour cache to check for updates immediately.
What Gets Updated¶
| Component | Full Upgrade | Wheel-Only |
|---|---|---|
| WhisperJAV code | Yes | Yes |
| New dependencies | Yes | No |
| numpy/librosa fix | Yes | No |
| Desktop shortcut | Yes | Yes |
| Old files cleanup | Yes | No |
What Gets Preserved¶
The upgrade preserves:
- AI models (~/.cache/whisper/, ~/.cache/huggingface/)
- Configuration (whisperjav_config.json)
- Cache data (.whisperjav_cache/)
Troubleshooting¶
See UPGRADE_TROUBLESHOOTING.md for common issues and solutions.
Manual Rollback¶
If an upgrade fails, see MANUAL_ROLLBACK.md for recovery options.
Running Standalone Upgrade Script¶
If the installed upgrade command doesn't work, you can download and run the standalone script:
cd %LOCALAPPDATA%\WhisperJAV
curl -O https://raw.githubusercontent.com/meizhong986/whisperjav/main/installer/upgrade_whisperjav.py
python.exe upgrade_whisperjav.py
Technical Details¶
Version Check Caching¶
Update checks are cached for 6 hours to avoid excessive API calls. Use --force to bypass the cache.
Update Process Flow¶
- GUI detects update → Shows notification banner
- User clicks "Update Now" → Confirmation dialog
- GUI spawns update wrapper → Background process
- GUI exits → Releases file locks
- Wrapper waits for GUI → Ensures clean exit
- Upgrade script runs → Updates packages
- Wrapper relaunches GUI → Fresh start
Files Created¶
update.log- Detailed upgrade log (in installation directory).whisperjav_cache/version_check.json- Cached update check result.whisperjav_cache/update_dismissed.json- Dismissed notification tracking