From a75b96f739490a4e4a479c43f6c1e26d6b50db83 Mon Sep 17 00:00:00 2001 From: Haze <709547807@qq.com> Date: Sat, 28 Feb 2026 16:47:22 +0800 Subject: [PATCH] fix(electron-builder): disable warnings as errors for NSIS build to prevent uninstaller warnings (#227) --- electron-builder.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/electron-builder.yml b/electron-builder.yml index ac3c6f4bb..9ff8bb5ca 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -118,6 +118,9 @@ win: nsis: oneClick: false perMachine: false + # Avoid NSIS build failure: warning 6010 (_ci_StrContains "not referenced") is emitted when + # building the uninstaller, because that function is only used in the install macro. + warningsAsErrors: false allowToChangeInstallationDirectory: true deleteAppDataOnUninstall: false differentialPackage: true