From 36c2ab92384cce56d8c47c146441943d8f337af9 Mon Sep 17 00:00:00 2001 From: ZhuchkaTriplesix Date: Sat, 10 Oct 2026 19:49:43 +0300 Subject: [PATCH] fix(packaging): add bubblewrap to Recommends in Linux deb and rpm packages Closes #1378 --- packaging/linux/querya-desktop.spec | 1 + scripts/linux/build_deb.sh | 2 +- test/packaging/linux_maintainer_scripts_test.dart | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packaging/linux/querya-desktop.spec b/packaging/linux/querya-desktop.spec index 8005f520..d49c1105 100644 --- a/packaging/linux/querya-desktop.spec +++ b/packaging/linux/querya-desktop.spec @@ -12,6 +12,7 @@ Requires: gtk3 >= 3.22 Requires: libsecret >= 0.18 Requires: glib2 >= 2.56 Recommends: libappindicator-gtk3 +Recommends: bubblewrap %description Multi-database desktop client for PostgreSQL, MySQL, Redis, MongoDB, diff --git a/scripts/linux/build_deb.sh b/scripts/linux/build_deb.sh index 8c28f91b..5427f546 100755 --- a/scripts/linux/build_deb.sh +++ b/scripts/linux/build_deb.sh @@ -68,7 +68,7 @@ Architecture: ${ARCH} Maintainer: QueryaHub Installed-Size: ${INSTALLED_SIZE} Depends: libgtk-3-0, libsecret-1-0, libglib2.0-0 -Recommends: libayatana-appindicator3-1 +Recommends: libayatana-appindicator3-1, bubblewrap Homepage: https://github.com/QueryaHub/Querya-Desktop Description: Querya Desktop database client Multi-database desktop client for PostgreSQL, MySQL, Redis, MongoDB, diff --git a/test/packaging/linux_maintainer_scripts_test.dart b/test/packaging/linux_maintainer_scripts_test.dart index e0a6e9b7..8143a101 100644 --- a/test/packaging/linux_maintainer_scripts_test.dart +++ b/test/packaging/linux_maintainer_scripts_test.dart @@ -115,4 +115,12 @@ void main() { expect(spec.indexOf('%post\n'), lessThan(spec.indexOf('%files'))); expect(spec.indexOf('%files'), lessThan(spec.indexOf('%changelog'))); }); + + test('deb and rpm package definitions recommend bubblewrap for driver sandbox', () { + final debScript = File('scripts/linux/build_deb.sh').readAsStringSync(); + expect(debScript, contains('Recommends: libayatana-appindicator3-1, bubblewrap')); + + final spec = File('packaging/linux/querya-desktop.spec').readAsStringSync(); + expect(spec, contains('Recommends: bubblewrap')); + }); }