mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-25 14:50:30 +08:00
Add workaround for broken AppImages
There is a bug in libwebkit2gtk that prevents a tauri AppImage from working. To work around this bug we downgrade libwebkit2gtk and associated libraries in the build workflow on CI. See https://github.com/tauri-apps/tauri/issues/11994 and https://github.com/gitbutlerapp/gitbutler/pull/5301
This commit is contained in:
+23
-1
@@ -12,14 +12,36 @@ steps:
|
||||
- "/bin/bash"
|
||||
- "-c"
|
||||
- |
|
||||
set -euo pipefail
|
||||
|
||||
export ARTIFACT_DIR="radicle-desktop/$${CI_COMMIT_TAG:+$CI_COMMIT_TAG}$( [[ -z "$CI_COMMIT_TAG" ]] && echo "$(date -u +%Y-%m-%dT%H:%M:%SZ)_${CI_COMMIT_SHA:0:8}" )"
|
||||
export LATEST_DIR="radicle-desktop/latest"
|
||||
mkdir -p "$ARTIFACT_DIR"
|
||||
mkdir -p "$LATEST_DIR"
|
||||
echo $ARTIFACT_DIR
|
||||
echo $LATEST_DIR
|
||||
|
||||
# Install dependencies
|
||||
apt-get update && apt-get install -y build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev libwebkit2gtk-4.1-dev
|
||||
# We downgrade webkit2gtk because of a bug.
|
||||
# See
|
||||
# https://github.com/tauri-apps/tauri/issues/11994#issuecomment-2585913213
|
||||
# for details
|
||||
apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
curl \
|
||||
wget \
|
||||
file \
|
||||
libxdo-dev \
|
||||
libssl-dev \
|
||||
libayatana-appindicator3-dev \
|
||||
librsvg2-dev \
|
||||
libwebkit2gtk-4.1-0=2.44.0-2 \
|
||||
libwebkit2gtk-4.1-dev=2.44.0-2 \
|
||||
libjavascriptcoregtk-4.1-0=2.44.0-2 \
|
||||
libjavascriptcoregtk-4.1-dev=2.44.0-2 \
|
||||
gir1.2-javascriptcoregtk-4.1=2.44.0-2 \
|
||||
gir1.2-webkit2-4.1=2.44.0-2
|
||||
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && apt-get install -y nodejs
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
. "$HOME/.cargo/env"
|
||||
|
||||
Reference in New Issue
Block a user