From 2172ceb7a2a64016393896da5e6ac6b931119bda Mon Sep 17 00:00:00 2001 From: Kieran Zhang Date: Thu, 1 Oct 2026 20:42:41 +0800 Subject: [PATCH] fix(ci): install Playwright Linux deps without sudo bunx --- .github/workflows/release-macos.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml index 44752493..0d5ffae4 100644 --- a/.github/workflows/release-macos.yml +++ b/.github/workflows/release-macos.yml @@ -170,8 +170,9 @@ jobs: run: | sudo apt-get update sudo apt-get install -y xvfb - bunx playwright install chromium - sudo bunx playwright install-deps chromium + # sudo resets PATH and cannot find bunx; Playwright elevates the apt + # step with sudo itself when it is not running as root. + bunx playwright install --with-deps chromium # linux-unpacked is the packaged app (isPackaged). electron-updater throws # before the window exists when Linux still reports version 0.0, so a # window that opens is the setVersion check. --ozone-platform=x11 is only