diff options
author | Nick White <git@njw.name> | 2022-10-27 16:27:55 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2022-10-27 16:30:37 +0100 |
commit | 811601e4b446b1c598af965b74155f7f76ffb7e9 (patch) | |
tree | b61c09c24c41b714f07cbbfee7b06aab6c534c08 /cmd/rescribe/embed_tessdata.go | |
parent | 4eaded095d755e0988e7cd8b32c7dab8ec6d0967 (diff) |
Allow completely non-embedded builds
This enables installs straight from 'go install' or 'fyne install'. It
also means warning if a system getgbook isn't found, and erroring if
tesseract isn't found (as was done already). The location of getgbook
can therefore now be specified on the command line.
Embedded builds are enabled with the -tags embed flag, which the makefile
sets for all builds.
Diffstat (limited to 'cmd/rescribe/embed_tessdata.go')
-rw-r--r-- | cmd/rescribe/embed_tessdata.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd/rescribe/embed_tessdata.go b/cmd/rescribe/embed_tessdata.go new file mode 100644 index 0000000..ea9ce8f --- /dev/null +++ b/cmd/rescribe/embed_tessdata.go @@ -0,0 +1,12 @@ +// Copyright 2022 Nick White. +// Use of this source code is governed by the GPLv3 +// license that can be found in the LICENSE file. + +//go:build embed + +package main + +import _ "embed" + +//go:embed tessdata.20220322.zip +var tessdatazip []byte |