diff --git a/ci/appimage.sh b/ci/appimage.sh index ee8361a26..b3a8de59b 100755 --- a/ci/appimage.sh +++ b/ci/appimage.sh @@ -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 diff --git a/ci/deploy.sh b/ci/deploy.sh index 0a629c2c8..f182f267d 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -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 - _) diff --git a/get-deps b/get-deps index e491d3cdc..bbedbf6f4 100755 --- a/get-deps +++ b/get-deps @@ -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