Skip to content

Commit f716340

Browse files
committed
hopefully this works
1 parent 1464b33 commit f716340

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

get-dependencies.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ ARCH=$(uname -m)
66

77
echo "Installing package dependencies..."
88
echo "---------------------------------------------------------------"
9-
pacman -Syu --noconfirm gimagereader-qt kvantum lxqt-qtplugin qt6ct
9+
pacman -Syu --noconfirm \
10+
gimagereader-qt \
11+
kvantum \
12+
lxqt-qtplugin \
13+
qt6ct \
14+
tesseract-data-eng \
15+
tesseract-data-osd
1016

1117
echo "Installing debloated packages..."
1218
echo "---------------------------------------------------------------"
@@ -17,6 +23,16 @@ get-debloated-pkgs --add-common --prefer-nano
1723

1824
# If the application needs to be manually built that has to be done down here
1925

26+
# Use tessdata_fast script models since they are way lighter than what archlinux provides
27+
echo "Downloading tesseract script models..."
28+
echo "---------------------------------------------------------------"
29+
dst_dir=/usr/share/tessdata
30+
tessdata_source=https://github.com/tesseract-ocr/tessdata_fast/raw/main/script
31+
for lang in Latin Cyrillic Arabic Devanagari HanS HanT Japanese Hangul Greek; do
32+
echo "Downloading $lang.traineddata"
33+
wget --retry-connrefused --tries=30 "$tessdata_source"/"$lang".traineddata -O "$dst_dir"/"$lang".traineddata
34+
done
35+
2036
# if you also have to make nightly releases check for DEVEL_RELEASE = 1
2137
#
2238
# if [ "${DEVEL_RELEASE-}" = 1 ]; then

make-appimage.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ export DESKTOP=/usr/share/applications/gimagereader-qt6.desktop
1414
# Deploy dependencies
1515
quick-sharun \
1616
/usr/bin/gimagereader-qt6 \
17-
/usr/bin/tesseract
17+
/usr/bin/tesseract \
18+
/usr/share/tessdata
1819

1920
# Additional changes can be done in between here
2021

0 commit comments

Comments
 (0)