From 3a748491687dc538b9e2abd4231480d3b2424eb2 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Tue, 2 Jul 2024 21:55:33 +0100 Subject: [PATCH] chore: fix electron build --- .yarnrc.yml | 11 +++++++++++ tools/build_electron.mjs | 5 ----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.yarnrc.yml b/.yarnrc.yml index 3186f3f..c171042 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1 +1,12 @@ nodeLinker: node-modules + +# install everything, to allow for electron cross-building +supportedArchitectures: + os: + - win32 + - linux + - darwin + cpu: + - x64 + - arm64 + - ia32 diff --git a/tools/build_electron.mjs b/tools/build_electron.mjs index f8f86b2..a7fe14d 100644 --- a/tools/build_electron.mjs +++ b/tools/build_electron.mjs @@ -61,11 +61,6 @@ if (platform === 'win-x64' || process.platform === 'win32') { } } -// Force reinstall @julusian/skia-canvas, so that it is the correct arch -if (nodePreGypArgs.length) { - await $`yarn --cwd node_modules/@julusian/skia-canvas run install --update-binary ${nodePreGypArgs}` -} - // HACK: skip this as it is trying to rebuild everything from source and failing // if (!platform) { // // If for our own platform, make sure the correct deps are installed