mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1908] [MERGED] fix(windows): Bundle tessdata for OCR support out of the box #2696
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1908
Author: @cfsmp3
Created: 12/26/2025
Status: ✅ Merged
Merged: 12/26/2025
Merged by: @cfsmp3
Base:
master← Head:fix/issue-1578-bundle-tessdata📝 Commits (1)
20448bffix(windows): Bundle tessdata for OCR support out of the box📊 Changes
3 files changed (+91 additions, -2 deletions)
View changed files
📝
.github/workflows/release.yml(+8 -0)📝
src/lib_ccx/ocr.c(+72 -2)📝
windows/installer.wxs(+11 -0)📄 Description
Summary
The Windows release was missing Tesseract OCR runtime dependencies (tessdata files) needed for the HardSubx feature to work. Users had to manually install Tesseract OCR and set
TESSDATA_PREFIXenvironment variable.This PR fixes that by:
get_executable_directory()toocr.cthat finds the directory where CCExtractor is installed (works on Windows, Linux, and macOS)probe_tessdata_location()to search for tessdata in the executable directory, enabling bundled tessdata to be found automaticallyeng.traineddataandosd.traineddatafromtesseract-ocr/tessdata_fastduring release buildstessdata/directory with the traineddata filesNow the Windows release includes tessdata files, and CCExtractor will automatically find them in the installation directory without requiring users to install Tesseract separately or set environment variables.
Test plan
tessdata/eng.traineddataandtessdata/osd.traineddataFixes #1578
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.