summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rescribe/embed_darwin_amd64.go (renamed from cmd/rescribe/embed_darwin.go)0
-rw-r--r--cmd/rescribe/embed_darwin_arm64.go10
-rw-r--r--cmd/rescribe/getembeds.go1
3 files changed, 11 insertions, 0 deletions
diff --git a/cmd/rescribe/embed_darwin.go b/cmd/rescribe/embed_darwin_amd64.go
index 719c9cc..719c9cc 100644
--- a/cmd/rescribe/embed_darwin.go
+++ b/cmd/rescribe/embed_darwin_amd64.go
diff --git a/cmd/rescribe/embed_darwin_arm64.go b/cmd/rescribe/embed_darwin_arm64.go
new file mode 100644
index 0000000..a1ca9b8
--- /dev/null
+++ b/cmd/rescribe/embed_darwin_arm64.go
@@ -0,0 +1,10 @@
+// Copyright 2021 Nick White.
+// Use of this source code is governed by the GPLv3
+// license that can be found in the LICENSE file.
+
+package main
+
+import _ "embed"
+
+//go:embed tesseract-osx-m1-v4.1.1.20210802.zip
+var tesszip []byte
diff --git a/cmd/rescribe/getembeds.go b/cmd/rescribe/getembeds.go
index 1747d82..de000a8 100644
--- a/cmd/rescribe/getembeds.go
+++ b/cmd/rescribe/getembeds.go
@@ -44,6 +44,7 @@ func main() {
"https://rescribe.xyz/rescribe/embeds/tessdata.20210622.zip",
"https://rescribe.xyz/rescribe/embeds/tesseract-linux-v5.0.0-alpha.20210510.zip",
"https://rescribe.xyz/rescribe/embeds/tesseract-osx-v4.1.1.20191227.zip",
+ "https://rescribe.xyz/rescribe/embeds/tesseract-osx-m1-v4.1.1.20210802.zip",
"https://rescribe.xyz/rescribe/embeds/tesseract-w32-v5.0.0-alpha.20210506.zip",
}
for _, v := range urls {