ci: more adjustments for centos9
Avoid depending on lsb_release, which is no longer shipped in centos9.
This commit is contained in:
1 parent
7089954049
commit
98d2400fba
3 files changed
+7
-7
No files matched your search
+2
-2
@@ -14,8 +14,8 @@ install -Dm644 assets/wezterm.appdata.xml AppDir/usr/share/metainfo/org.wezfurlo
|
||||
[ -x /tmp/linuxdeploy ] || ( curl -L 'https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage' -o /tmp/linuxdeploy && chmod +x /tmp/linuxdeploy )
|
||||
|
||||
TAG_NAME=${TAG_NAME:-$(git -c "core.abbrev=8" show -s "--format=%cd-%h" "--date=format:%Y%m%d-%H%M%S")}
|
||||
distro=$(lsb_release -is)
|
||||
distver=$(lsb_release -rs)
|
||||
distro=$(lsb_release -is 2>/dev/null || sh -c "source /etc/os-release && echo \$NAME")
|
||||
distver=$(lsb_release -rs 2>/dev/null || sh -c "source /etc/os-release && echo \$VERSION_ID")
|
||||
|
||||
# Embed appropriate update info
|
||||
# https://github.com/AppImage/AppImageSpec/blob/master/draft.md#github-releases
|
||||
|
||||
+2
-2
@@ -121,8 +121,8 @@ case $OSTYPE in
|
||||
iscc.exe -DMyAppVersion=${TAG_NAME#nightly} -F${instname} ci/windows-installer.iss
|
||||
;;
|
||||
linux-gnu)
|
||||
distro=$(lsb_release -is)
|
||||
distver=$(lsb_release -rs)
|
||||
distro=$(lsb_release -is 2>/dev/null || sh -c "source /etc/os-release && echo \$NAME")
|
||||
distver=$(lsb_release -rs 2>/dev/null || sh -c "source /etc/os-release && echo \$VERSION_ID")
|
||||
case "$distro" in
|
||||
*Fedora*|*CentOS*)
|
||||
WEZTERM_RPM_VERSION=$(echo ${TAG_NAME#nightly-} | tr - _)
|
||||
|
||||
@@ -8,7 +8,7 @@ if test -z "${SUDO+x}" && hash sudo 2>/dev/null; then
|
||||
SUDO="sudo"
|
||||
fi
|
||||
|
||||
# Centos may not have lsb_release installed
|
||||
# Centos may not have lsb_release installed (or even available at all)
|
||||
if test -e /etc/centos-release || test -e /etc/fedora-release; then
|
||||
if test -x /bin/dnf ; then
|
||||
YUM="$SUDO dnf"
|
||||
@@ -34,8 +34,7 @@ if test -e /etc/centos-release || test -e /etc/fedora-release; then
|
||||
xcb-util-keysyms-devel \
|
||||
xcb-util-image-devel \
|
||||
xcb-util-wm-devel \
|
||||
rpm-build \
|
||||
redhat-lsb-core
|
||||
rpm-build
|
||||
exit $?
|
||||
fi
|
||||
|
||||
@@ -154,6 +153,7 @@ case $OSTYPE in
|
||||
*)
|
||||
echo "Please contribute the commands to install the deps"
|
||||
echo "For `lsb_release -ds`"
|
||||
cat /etc/os-release
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in new issue
Block a user