From 82baef2b048c1991bcdfc63282cb69717206c3c2 Mon Sep 17 00:00:00 2001 From: Ivan Fontosh Date: Tue, 12 May 2026 07:43:03 +0800 Subject: [PATCH] ci(release): install @img/sharp-win32-x64 with --os win32 --cpu x64 on Linux Co-authored-by: Cursor --- .gitea/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 5c908d2..42813a2 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -67,8 +67,9 @@ jobs: - run: npm ci + # Иначе EBADPLATFORM: пакет только для win32, текущий раннер — linux. - name: sharp (@img/sharp-win32-x64) для Windows-артефакта при сборке на Linux - run: npm install --no-save @img/sharp-win32-x64@0.34.5 + run: npm install --no-save --os=win32 --cpu=x64 @img/sharp-win32-x64@0.34.5 - run: npm run build