summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--makefile3
4 files changed, 14 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 {
diff --git a/makefile b/makefile
index 6ba1af5..d831938 100644
--- a/makefile
+++ b/makefile
@@ -8,5 +8,8 @@ default:
rescribe-osx:
GOOS=darwin GOARCH=amd64 go build -o $@ ./cmd/rescribe
+rescribe-osx-m1:
+ GOOS=darwin GOARCH=arm64 go build -o $@ ./cmd/rescribe
+
rescribe.exe:
GOOS=windows GOARCH=386 go build -o $@ ./cmd/rescribe