From f463237e3cda7cba5af2f062eb44a2798daf7b49 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 9 Apr 2024 00:56:06 +0100 Subject: Fix flatpak tessdata sourcing to ensure all files are available to it --- cmd/rescribe/embed_other2.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cmd/rescribe/embed_other2.go (limited to 'cmd/rescribe/embed_other2.go') 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 -- cgit v1.2.1-24-ge1ad