Correct nfpm.yaml template package dependencies. (#4481)

* Correct nfpm.yaml template package dependencies.

As is, the `nfpm.yaml` template pulls in `-dev` versions of the packages the built Wails application actually relies on, in addition to `build-essential`. Which will work, but is way overkill. This PR corrects this.

I have tested this on an Ubuntu 22.04 VM and a Rocky Linux 10 VM, *(which actually necessitated attaching the EPEL repository)* but I did not verify Arch beyond looking up packages.

Additionally, it appears that the package name for RPM distro family is not in tune with the rest of them, referring to an earlier version of webkit2gtk, which has also been corrected.

**P.S.** Could we supply our own templates or updatable build files pretty please?

* Addressing points brought up.

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Eugene Medvedev 2025-08-09 11:29:31 +03:00 committed by GitHub
commit c2ba85663f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 11 deletions

View file

@ -26,6 +26,7 @@ After processing, the content will be moved to the main changelog and this file
## Fixed
<!-- Bug fixes -->
+ Fix extra-broad Linux package dependencies, fix outdated RPM dependencies.
## Deprecated
<!-- Soon-to-be removed features -->

View file

@ -26,28 +26,22 @@ contents:
# Default dependencies for Debian 12/Ubuntu 22.04+ with WebKit 4.1
depends:
- libgtk-3-dev
- libwebkit2gtk-4.1-dev
- build-essential
- pkg-config
- libgtk-3-0
- libwebkit2gtk-4.1-0
# Distribution-specific overrides for different package formats and WebKit versions
overrides:
# RPM packages for RHEL/CentOS/AlmaLinux/Rocky Linux (WebKit 4.0)
rpm:
depends:
- gtk3-devel
- webkit2gtk3-devel
- gcc-c++
- pkg-config
- gtk3
- webkit2gtk4.1
# Arch Linux packages (WebKit 4.1)
archlinux:
depends:
- gtk3
- webkit2gtk-4.1
- base-devel
- pkgconf
# scripts section to ensure desktop database is updated after install
scripts:
@ -70,4 +64,4 @@ scripts:
# conflicts:
# - not-foo
# - not-bar
# changelog: "changelog.yaml"
# changelog: "changelog.yaml"