From 72fa0f917436a2ea4ec0c3104f91af0d1ca91913 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 28 May 2024 01:27:10 +1200 Subject: [PATCH] build portable and installer for windows and add suffix to artifact names --- package.json | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index bf61a22..30c17c7 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "build": { "appId": "com.liamcottle.reticulumwebchat", "productName": "Reticulum WebChat", - "artifactName": "ReticulumWebChat-v${version}.${ext}", "asar": false, "files": [ "electron/**/*" @@ -36,13 +35,30 @@ ], "mac": { "target": "dmg", - "identity": null + "identity": null, + "artifactName": "ReticulumWebChat-v${version}-${os}.${ext}" }, "win": { - "target": "portable" + "artifactName": "ReticulumWebChat-v${version}-${os}.${ext}", + "target": [ + { + "target": "portable" + }, + { + "target": "nsis" + } + ] }, "dmg": { "writeUpdateInfo": false + }, + "portable": { + "artifactName": "ReticulumWebChat-v${version}-${os}-portable.${ext}" + }, + "nsis": { + "artifactName": "ReticulumWebChat-v${version}-${os}-installer.${ext}", + "oneClick": false, + "allowToChangeInstallationDirectory": true } } }