Skip to content

Commit

Permalink
Add script for building installers
Browse files Browse the repository at this point in the history
Call autogen.sh before building installers

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jul 8, 2022
1 parent ada1418 commit 946511c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions make-installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

TAG=5.0.0-rc1.$(date +%Y%m%d)

git tag -a v$TAG -m "Tesseract $TAG"

ARCHS="i686 x86_64"

./autogen.sh

for ARCH in $ARCHS; do
HOST=$ARCH-w64-mingw32
BUILDDIR=bin/ndebug/$HOST-$TAG

rm -rf $BUILDDIR
mkdir -p $BUILDDIR
(
cd $BUILDDIR
# Disable OpenMP (see https://github.com/tesseract-ocr/tesseract/issues/1662).
../../../configure --disable-openmp --host=$HOST --prefix=/usr/$HOST CXX=$HOST-g++-posix CXXFLAGS="-fno-math-errno -Wall -Wextra -Wpedantic -g -O2"
make install-jars install training-install html winsetup prefix=$PWD/usr/$HOST
)
done

0 comments on commit 946511c

Please sign in to comment.