From 7b05f9478e596ff6777ba3cb294e66c947f26f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=20Lin=29?= Date: Fri, 31 Mar 2023 04:42:33 +0800 Subject: [PATCH] fix: Fix snap package building MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch fixes the outdated snap package recipe to make the snap buildable with the current Snapcraft release(7.3.1). Signed-off-by: ๆž—ๅšไป(Buo-ren Lin) --- snap/snapcraft.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 64585c6b..4ca9f402 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -13,13 +13,13 @@ description: | grade: stable # must be 'stable' to release into candidate/stable channels confinement: strict +base: core22 apps: tesseract: - command: > - env - TESSDATA_PREFIX=$SNAP_USER_COMMON - tesseract + command: usr/local/bin/tesseract + environment: + TESSDATA_PREFIX: $SNAP_USER_COMMON plugs: - home - removable-media @@ -30,9 +30,9 @@ parts: plugin: autotools build-packages: - pkg-config - - libpng12-dev - - libjpeg8-dev - - libtiff5-dev + - libpng-dev + - libjpeg-dev + - libtiff-dev - zlib1g-dev - libicu-dev - libpango1.0-dev