From eabc0da6d524ae271d6672946d0baed0052ed69f Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 4 Sep 2024 15:11:51 +0200 Subject: [PATCH] specify deb control file when building headless to restrict dependencies --- build.gradle | 2 +- src/main/deploy/package/linux-headless/control | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/main/deploy/package/linux-headless/control diff --git a/build.gradle b/build.gradle index 9603137a..f1ef94af 100644 --- a/build.gradle +++ b/build.gradle @@ -275,7 +275,7 @@ jlink { } if(os.linux) { if(headless) { - installerOptions = ['--license-file', 'LICENSE'] + installerOptions = ['--resource-dir', 'src/main/deploy/package/linux-headless/'] } else { installerOptions += ['--resource-dir', 'src/main/deploy/package/linux/', '--linux-shortcut', '--linux-menu-group', 'Sparrow'] } diff --git a/src/main/deploy/package/linux-headless/control b/src/main/deploy/package/linux-headless/control new file mode 100644 index 00000000..9a18a477 --- /dev/null +++ b/src/main/deploy/package/linux-headless/control @@ -0,0 +1,9 @@ +Package: sparrow +Version: 1.9.2-1 +Section: utils +Maintainer: Craig Raw +Priority: optional +Architecture: amd64 +Provides: sparrow +Description: Sparrow +Depends: libc6, zlib1g