Repository navigation
v2.0.0: self-contained Windows package, OCR installer, attributions, release workflow - #20
Merged
Merged
Conversation
…ders The UB-Mannheim Tesseract installer and Ghostscript don't add themselves to PATH, so OCR reported 'Tesseract is not installed' although it was. core/tools.find_tool checks PATH, then Program Files (newest version first) and Homebrew folders, and puts the folder on PATH for OCRmyPDF. The language list is no longer cached when Tesseract is missing, so installing it while the app runs works after a retry. The error now says where to get Tesseract and to tick the Turkish language pack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XKGev7S7KWmgSAMGCQtAar
…ystem fonts - scripts/install-ocr-windows.ps1 (+ .bat): installs Tesseract with winget and adds the Turkish language data in a per-user folder; offered on the first start. The server uses that folder (TESSDATA_PREFIX) automatically. - THIRD_PARTY_LICENSES.md credits every direct and transitive library, external program, font, dataset and published algorithm with its licence (Python table generated by scripts/python_licenses.py). The UI serves it at /licenses.txt followed by the full licence texts of every npm package in the bundle (collected at build time); the header links to the source code (AGPL-3.0 section 13) and the licences. pdf.js LICENSE ships with its copied assets; text-layer.css credits pdf.js. - Liberation Sans/Serif/Mono (SIL OFL 1.1) are bundled as free, metric-compatible stand-ins for Arial, Times New Roman and Courier New. Fonts installed on the server are no longer sent to other devices; LAN browsers preview with their own fonts. Adobe trademark note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XKGev7S7KWmgSAMGCQtAar
- scripts/build_package.py builds dist/AdminPDFToolkit-<version>.zip (server + built UI, start/OCR launchers with CRLF, docs, OKUBENI.txt). - scripts/release_notes.py: install steps + the version's CHANGELOG section. - .github/workflows/release.yml: on a v* tag, checks it matches VERSION, builds the UI and the package, smoke-tests the unzipped package, and publishes the GitHub release with the zip. - Version 2.0.0; CHANGELOG [2.0.0] includes the changes since the preview. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XKGev7S7KWmgSAMGCQtAar
On PCs without Python the start script failed ('py' not recognized, the
Microsoft Store python stub). The Windows release package now carries the
embeddable Python and every library: unzip, double-click, works offline.
- scripts/build_windows_portable.py: embeds the python.org embeddable
build matching the build interpreter, installs the server wheel and its
dependencies into python/Lib/site-packages, drops OpenCV's video-only
FFmpeg plug-in, adds launchers (normal, LAN, OCR) and OKUBENI.
- release.yml: Windows job builds it on windows-latest and starts the
unzipped package with no system Python on PATH; Linux/macOS job builds
and starts the Python package; publish job (tags only) attaches both.
Runs on PRs touching packaging as a build check.
- start-windows.bat: verifies Python really runs (skips the Store stub)
and otherwise points to the Windows package; OCR offer moved to
scripts/offer-ocr.bat, shared by both packages.
- README, release notes, licences and changelog updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XKGev7S7KWmgSAMGCQtAar
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
8 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / Özet
Prepares the v2.0.0 release and fixes what came up while trying the first package on other PCs.
Self-contained Windows package
Baslat (Windows).batfailed with "'py' is not recognized".AdminPDFToolkit-<v>-Windows.zipnow bundles the embeddable Python and every library. You unzip it, double-click, and it works offline with nothing to install.scripts/build_windows_portable.py.OCR on Windows
OCR Kur (Windows).batinstalls Tesseract via winget and adds the Turkish language data in a per-user folder, so that step needs no admin rights.Licences and attribution
THIRD_PARTY_LICENSES.mdnow credits every direct and transitive library, external program, font, dataset and published algorithm. The Python table is generated byscripts/python_licenses.py./licenses.txt, together with the full licence texts of every bundled npm package.Fonts
Release
.github/workflows/release.yml:windows-latest, then starts it with no system Python on PATH.v*tag, publishes both packages to a GitHub release with notes fromCHANGELOG.md.Type of change / Değişiklik tipi
Checklist
ruff check,ruff format --check,mypy,pytest: 292 passed)npm run check && npm run build)CHANGELOG.md([2.0.0])README.md)Linked issues / Bağlı issue'lar
None.
Screenshots (UI changes only)
The header gets two small links next to the version, "AGPL-3.0 · Kaynak kod" and "Lisanslar"; no other UI changes.
Test plan / Test planı
/licenses.txt.x86_64-pc-windows-msvc): about 120 MB zipped.windows-latest;Generated by Claude Code