mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-18 19:50:18 +00:00
Update appimage-build.yml for SSL and Wayland support
This commit is contained in:
committed by
GitHub
parent
e8f9ea0784
commit
0dcc35df8f
12
.github/workflows/appimage-build.yml
vendored
12
.github/workflows/appimage-build.yml
vendored
@@ -98,14 +98,26 @@ jobs:
|
|||||||
export GIO_EXTRA_MODULES="$APPDIR/usr/lib/gio/modules${GIO_EXTRA_MODULES:+:$GIO_EXTRA_MODULES}"
|
export GIO_EXTRA_MODULES="$APPDIR/usr/lib/gio/modules${GIO_EXTRA_MODULES:+:$GIO_EXTRA_MODULES}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# OpenSSL trust store override
|
||||||
export SSL_CERT_FILE="${SSL_CERT_FILE:-$APPDIR/etc/ssl/certs/ca-certificates.crt}"
|
export SSL_CERT_FILE="${SSL_CERT_FILE:-$APPDIR/etc/ssl/certs/ca-certificates.crt}"
|
||||||
export SSL_CERT_DIR="${SSL_CERT_DIR:-$APPDIR/etc/ssl/certs}"
|
export SSL_CERT_DIR="${SSL_CERT_DIR:-$APPDIR/etc/ssl/certs}"
|
||||||
export CURL_CA_BUNDLE="${CURL_CA_BUNDLE:-$SSL_CERT_FILE}"
|
export CURL_CA_BUNDLE="${CURL_CA_BUNDLE:-$SSL_CERT_FILE}"
|
||||||
|
|
||||||
|
# Prefer Wayland if the session provides it, but keep X11 fallback.
|
||||||
|
# Don't override if the user already set GDK_BACKEND explicitly.
|
||||||
|
if [ -z "${GDK_BACKEND:-}" ]; then
|
||||||
|
if [ -n "${WAYLAND_DISPLAY:-}" ] || [ "${XDG_SESSION_TYPE:-}" = "wayland" ]; then
|
||||||
|
export GDK_BACKEND="wayland,x11"
|
||||||
|
else
|
||||||
|
export GDK_BACKEND="x11"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
exec "$APPDIR/usr/bin/zoitechat" "$@"
|
exec "$APPDIR/usr/bin/zoitechat" "$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x AppRun
|
chmod +x AppRun
|
||||||
|
|
||||||
|
|
||||||
VERSION="$(git describe --tags --always)"
|
VERSION="$(git describe --tags --always)"
|
||||||
|
|
||||||
./linuxdeploy-x86_64.AppImage \
|
./linuxdeploy-x86_64.AppImage \
|
||||||
|
|||||||
Reference in New Issue
Block a user