summaryrefslogtreecommitdiff
path: root/cmd/rescribe/main.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-06-22 15:21:32 +0100
committerNick White <git@njw.name>2021-06-22 15:21:32 +0100
commit714c55f077aceb982130642fc957db71f17007f0 (patch)
treea925e2902abc83931de145fd7dd79dde69bd1042 /cmd/rescribe/main.go
parent302feb863e3ae9c1cc168652d4a6d8eafd7fc57d (diff)
rescribe: add embedded tesseract for linux
Diffstat (limited to 'cmd/rescribe/main.go')
-rw-r--r--cmd/rescribe/main.go12
1 files changed, 7 insertions, 5 deletions
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
}
}