From 67e52e54a4d7e72f6f1af07c464c882a29121d22 Mon Sep 17 00:00:00 2001 From: ApiliumDevTeam Date: Wed, 25 Mar 2026 20:45:31 +0100 Subject: [PATCH] fix: install sharp in isolated temp dir to avoid peer dep conflicts on macOS CI --- .github/workflows/build-installers.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-installers.yml b/.github/workflows/build-installers.yml index 2f671708..f2a3c4bc 100644 --- a/.github/workflows/build-installers.yml +++ b/.github/workflows/build-installers.yml @@ -177,9 +177,9 @@ jobs: - name: Install sharp and generate .icns icon run: | - npm install --no-package-lock --ignore-scripts sharp - npm rebuild sharp - node -e " + mkdir -p /tmp/sharp-tool && cd /tmp/sharp-tool && npm init -y > /dev/null 2>&1 && npm install sharp + cd $GITHUB_WORKSPACE + NODE_PATH=/tmp/sharp-tool/node_modules node -e " const sharp = require('sharp'); const fs = require('fs'); const src = 'ui/public/mayrito-face.png'; @@ -239,9 +239,9 @@ jobs: - name: Install sharp and generate .icns run: | - npm install --no-package-lock --ignore-scripts sharp - npm rebuild sharp - node -e " + mkdir -p /tmp/sharp-tool && cd /tmp/sharp-tool && npm init -y > /dev/null 2>&1 && npm install sharp + cd $GITHUB_WORKSPACE + NODE_PATH=/tmp/sharp-tool/node_modules node -e " const sharp = require('sharp'); const fs = require('fs'); const src = 'ui/public/mayrito-face.png';