From 714c55f077aceb982130642fc957db71f17007f0 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 22 Jun 2021 15:21:32 +0100 Subject: rescribe: add embedded tesseract for linux --- cmd/rescribe/main.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'cmd/rescribe/main.go') diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index 56c9777..ea2590f 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -185,14 +185,16 @@ func main() { } if !*systess { + err = unpackZip(tesszip, tessdir) + if err != nil { + log.Fatalln("Error unpacking embedded Tesseract zip:", err) + } switch runtime.GOOS { case "windows": - err = unpackZip(tesszip, tessdir) - if err != nil { - log.Fatalln("Error unpacking embedded Tesseract zip:", err) - } tessCommand = filepath.Join(tessdir, "tesseract.exe") - // TODO: add linux and osx + case "linux": + tessCommand = filepath.Join(tessdir, "tesseract") + // TODO: add osx } } -- cgit v1.2.1-24-ge1ad