From 53a2ac8f2dba4b8fa647a8c5062b649d45b05464 Mon Sep 17 00:00:00 2001 From: liuhao1024 Date: Mon, 8 Jun 2026 01:00:45 +0800 Subject: [PATCH] fix(desktop): unpack dist/ from asar so dashboard static files are servable The dashboard backend serves HTTP 404 on all static routes (/, /assets, /health) in packaged builds because resolveWebDist() points at app.asar.unpacked/dist/, but dist/** was not listed in asarUnpack. Add dist/** to the asarUnpack glob list so electron-builder extracts the built frontend assets alongside the asar archive, making them accessible to the Express static file server at runtime. Fixes #41327 --- apps/desktop/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/desktop/package.json b/apps/desktop/package.json index 33aaf057ec8..c626c5ef040 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -166,7 +166,8 @@ "afterSign": "scripts/notarize.cjs", "asarUnpack": [ "**/*.node", - "**/prebuilds/**" + "**/prebuilds/**", + "dist/**" ], "mac": { "category": "public.app-category.developer-tools",