From b72b7ea39ebb6db8556b242fe9ae7f8b1563f68a Mon Sep 17 00:00:00 2001 From: Alex Ivantsov Date: Mon, 20 Jul 2026 14:27:21 -0400 Subject: [PATCH] fix(build): distinct artifact names for nsis vs portable exe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both Windows targets emitted Hatchling--x64.exe — the portable build overwrote the installer during release publishing and the duplicate upload broke the workflow. Name them -setup- and -portable- respectively. --- electron-builder.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/electron-builder.yml b/electron-builder.yml index b4fa3ee..45142f8 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -31,12 +31,17 @@ win: target: - nsis - portable - artifactName: ${productName}-${version}-${arch}.${ext} +# The nsis installer and the portable build are both .exe — without distinct +# artifact names they collide on the same file and break release publishing. nsis: oneClick: false perMachine: false allowToChangeInstallationDirectory: true + artifactName: ${productName}-${version}-setup-${arch}.${ext} + +portable: + artifactName: ${productName}-${version}-portable-${arch}.${ext} mac: target: