1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00

ci: revise rpm filenames

I noticed that the opensuse rpms didn't show up in the latest release,
and traced it to the spec file not setting anything in the filename
to distinguish the rpm files.

This commit replaces the redhat-ish short suffix with one of our
own derived from the os info.

subst-release-info.py will need to be updated to reflect this
change, but I want to see what names are produced for the various
platforms first.
This commit is contained in:
Wez Furlong 2022-06-24 15:44:18 -07:00
parent 035ade89b7
commit 256afbecfd

View File

@ -126,6 +126,7 @@ case $OSTYPE in
;;
linux-gnu|linux)
distro=$(lsb_release -is 2>/dev/null || sh -c "source /etc/os-release && echo \$NAME")
distroid=$(lsb_release -is 2>/dev/null || sh -c "source /etc/os-release && echo \$ID")
distver=$(lsb_release -rs 2>/dev/null || sh -c "source /etc/os-release && echo \$VERSION_ID")
case "$distro" in
*Fedora*|*CentOS*|*SUSE*)
@ -133,7 +134,7 @@ case $OSTYPE in
cat > wezterm.spec <<EOF
Name: wezterm
Version: ${WEZTERM_RPM_VERSION}
Release: 1%{?dist}
Release: 1.${distroid}${distver}
Packager: Wez Furlong <wez@wezfurlong.org>
License: MIT
URL: https://wezfurlong.org/wezterm/