fix(linux): update electron to avoid crash on 16k page size (#2271)

This commit is contained in:
Baptiste Augrain
2025-03-18 19:47:00 +01:00
committed by GitHub
parent bc784e7823
commit b63c8404c3
5 changed files with 219 additions and 194 deletions

View File

@@ -55,12 +55,20 @@ if [[ -f "../build/linux/${VSCODE_ARCH}/electron.sh" ]]; then
# shellcheck disable=SC1090
source "../build/linux/${VSCODE_ARCH}/electron.sh"
if [[ "${ELECTRON_VERSION}" != "$( yarn config get target )" ]]; then
TARGET=$( yarn config get target )
# Only fails at different major versions
if [[ "${ELECTRON_VERSION%%.*}" != "${TARGET%%.*}" ]]; then
# Fail the pipeline if electron target doesn't match what is used.
echo "Electron ${VSCODE_ARCH} binary version doesn't match target electron version!"
echo "Releases available at: https://github.com/${VSCODE_ELECTRON_REPOSITORY}/releases"
exit 1
fi
if [[ "${ELECTRON_VERSION}" != "${TARGET}" ]]; then
# Force version
replace "s|target=\"${TARGET}\"|target=\"${ELECTRON_VERSION}\"|" .npmrc
fi
fi
if [[ -d "../patches/linux/client/" ]]; then