Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

fix: declare OpenSSL 3 runtime dependency in Debian packages (#2336)

Matt Van Horn2b3f7c816993
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ce01c9cd..aaf304c3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -583,6 +583,11 @@ jobs:
if compgen -G "${BUNDLE_DIR}/deb/*.deb" > /dev/null; then
for deb in "${BUNDLE_DIR}"/deb/*.deb; do
echo "Auditing deb package: ${deb}"
+ depends="$(dpkg-deb -f "$deb" Depends)"
+ if ! printf '%s\n' "$depends" | grep -Eq '(^|,)[[:space:]]*libssl3t64[[:space:]]*\|[[:space:]]*libssl3[[:space:]]*(,|$)'; then
+ echo "ERROR: ${deb} must declare 'libssl3t64 | libssl3' in bundle.linux.deb.depends for OpenSSL 3 runtime libraries. Depends: ${depends}" >&2
+ exit 1
+ fi
listing="$(mktemp)"
dpkg-deb -c "$deb" > "$listing"
require_pattern "$listing" 'usr/bin/handy$' "handy binary"
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index b3b100dd..ec245dbd 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -45,7 +45,11 @@
},
"linux": {
"deb": {
- "depends": ["libgtk-layer-shell0", "libopenblas0"],
+ "depends": [
+ "libgtk-layer-shell0",
+ "libopenblas0",
+ "libssl3t64 | libssl3"
+ ],
"files": {
"/usr/lib/Handy": "transcribe-libs"
}