summaryrefslogtreecommitdiff
path: root/cmd/rescribe/embed_other2.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2024-04-09 00:56:06 +0100
committerNick White <git@njw.name>2024-04-09 08:32:55 +0100
commitf463237e3cda7cba5af2f062eb44a2798daf7b49 (patch)
tree36d0e441eeec8b5a3a376edddf0a1b46afe3a266 /cmd/rescribe/embed_other2.go
parent1a4506e1bf619d0378832773f355b0014dcc1459 (diff)
Fix flatpak tessdata sourcing to ensure all files are available to it
Diffstat (limited to 'cmd/rescribe/embed_other2.go')
-rw-r--r--cmd/rescribe/embed_other2.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmd/rescribe/embed_other2.go b/cmd/rescribe/embed_other2.go
new file mode 100644
index 0000000..5749008
--- /dev/null
+++ b/cmd/rescribe/embed_other2.go
@@ -0,0 +1,11 @@
+// Copyright 2021 Nick White.
+// Use of this source code is governed by the GPLv3
+// license that can be found in the LICENSE file.
+
+//go:build (!darwin && !linux && !windows) || (!embed && !flatpak)
+
+package main
+
+// if not one of the above platforms, we won't embed tessdata, so
+// just create an empty byte slice
+var tessdatazip []byte