electron19: fix build with Python 3.11

This commit is contained in:
Michal Vasilek 2022-12-03 14:35:44 +01:00
parent 19bac157c4
commit 6e907b32e3

View File

@ -198,6 +198,9 @@ pre_configure() {
sed 's|//third_party/usb_ids/usb.ids|/usr/share/hwdata/usb.ids|g' \
-i services/device/public/cpp/usb/BUILD.gn
vsed -e 's|python3.10|python3.11|g' -i third_party/electron_node/configure
vsed -e "s|(3, 10)|(3, 11)|" -i third_party/electron_node/configure
mkdir -p third_party/node/linux/node-linux-x64/bin
ln -sf /usr/bin/node third_party/node/linux/node-linux-x64/bin/
rm -f third_party/devtools-frontend/src/third_party/esbuild/esbuild