Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub action and Makefile target for Windows installer #4341

Merged
merged 5 commits into from
Nov 2, 2024

Conversation

stweil
Copy link
Member

@stweil stweil commented Nov 1, 2024

The new GitHub action "installer-for-windows" builds an NSIS installer with Tesseract for Windows.
It is not run automatically, but must be triggered manually.

Autoconf builds also have a new target winsetup, so the installer can be built with make winsetup.
This requires a build environment with all needed components (NSIS, Windows libraries, ...).

@stweil
Copy link
Member Author

stweil commented Nov 1, 2024

nsis/winpath.exe Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this .dll also needed?

Copy link
Member Author

@stweil stweil Nov 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an extension for the NSIS installer and used for the download of Tesseract models (see inetc::get in nsis/tesseract.nsi).

Copy link
Contributor

@egorpugin egorpugin Nov 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to download via curl in makefile? Curl is present in modern windows.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated Makefile.am to download the zip file and unzip the INetC.dll.

@stweil stweil force-pushed the installer branch 2 times, most recently from ca636f6 to 7ea4a95 Compare November 1, 2024 16:26
stweil and others added 2 commits November 1, 2024 20:53
- Move NSIS installer file to new location
- Support cross builds with NSIS
- Clean nsis configuration
- Fix typos in nsis configuration
- Add jar files needed for ScrollView.jar
- Move ScrollView.jar to a new section
- Add missing configurations to tessdata
- Registry settings are now disabled (problems with long PATH)
- Add menu sections for all languages
- Simplify language downloads
- Tune and improve nsis configuration
- Add sizes for language data
- Add missing translations to nsis configuration
- Don't show details in installer by default
- Initial code for 64 bit Tesseract installer
- Fix uninstall for TESSDATA_PREFIX registry key
- Remove cube code
- nsis: Add all training executables
- nsis: Disable registry settings

Trying to add to PATH fails if the old PATH is very long and
will result in an empty PATH.

Remove these settings as they were already disabled by default,
and both are not needed.

Signed-off-by: Stefan Weil <[email protected]>
- Added a couple of languages that are available for the Linux version
- Add new section for script data
- Get data from tessdata_fast
  The data files are now in the "script" subdirectory.
- Update list of scripts and languages
- Update path for script trained data
- Add data for Han Simplified vertical script
- Fix names of tessdata (jpn_vert, kmr)
- Fix some path names for 64 bit version
- Remove testing files from installation
  Those files were moved from tesseract.git to test.git.
- Don't enforce admin mode, but use highest available
- Don't use a checkbox for the license
- Remove unused code for registry settings (PATH, TESSDATA)
- Don't show README.md (did not work)

Signed-off-by: Stefan Weil <[email protected]>
- Add manual pages in HTML format and helper for Tesseract command line
- Don't remove the installation directory recursively
- Add GitHub action for Tesseract installer for Windows
- Add docbook-xml to required packages (needed for doc)
- Use unicode for NSIS installer
- Optionally sign executables
- Add more file properties to installer
- Update configuration for use with pacman
- Build Windows installer only for 64 bit Windows

Signed-off-by: Stefan Weil <[email protected]>
@stweil stweil merged commit 827a4e7 into tesseract-ocr:main Nov 2, 2024
4 of 7 checks passed
@stweil stweil deleted the installer branch November 2, 2024 06:00
@stweil
Copy link
Member Author

stweil commented Nov 2, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants