mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-20 18:54:29 +10:00
fix(linux): update electron to avoid crash on 16k page size (#2271)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user