From 7dd5f5702a540974a282d5ea2bb3ec3f32f8ae7f Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Fri, 2 Jan 2026 18:35:59 -0600 Subject: [PATCH] chore(package): add Linux and Windows distribution scripts and update artifact naming convention for builds --- Taskfile.yml | 8 ++------ package.json | 10 ++++++---- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 0f16fdd..8c7d985 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -138,17 +138,13 @@ tasks: desc: Build Linux Electron app with prebuilt backend deps: [build-frontend] cmds: - - "{{.NPM}} run electron-postinstall" - - "{{.NPM}} run build-backend" - - "{{.NPM}} run dist -- --linux AppImage deb" + - "{{.NPM}} run dist:linux" build-electron-windows: desc: Build Windows Electron apps (portable and installer) deps: [build-frontend] cmds: - - "{{.NPM}} run electron-postinstall" - - "{{.NPM}} run build-backend" - - "{{.NPM}} run dist -- --win portable nsis" + - "{{.NPM}} run dist:windows" build-electron-all: desc: Build all Electron apps (Linux and Windows) diff --git a/package.json b/package.json index 095b108..f6b186b 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,8 @@ "electron-postinstall": "electron-builder install-app-deps", "electron": "pnpm run electron-postinstall && pnpm run build && electron .", "dist": "pnpm run electron-postinstall && pnpm run build && electron-builder --publish=never", + "dist:linux": "pnpm run electron-postinstall && pnpm run build && electron-builder --linux AppImage deb --publish=never", + "dist:windows": "pnpm run electron-postinstall && pnpm run build && electron-builder --win portable nsis --publish=never", "dist-prebuilt": "pnpm run electron-postinstall && pnpm run build-backend && electron-builder --publish=never", "dist:mac-arm64": "pnpm run electron-postinstall && pnpm run build && electron-builder --mac --arm64 --publish=never", "dist:mac-universal": "pnpm run electron-postinstall && pnpm run build && electron-builder --mac --universal --publish=never" @@ -62,7 +64,7 @@ ] }, "identity": null, - "artifactName": "ReticulumMeshChat-v${version}-mac-${arch}.${ext}", + "artifactName": "ReticulumMeshChatX-v${version}-mac-${arch}.${ext}", "x64ArchFiles": "Contents/Resources/app/electron/build/exe/**", "extendInfo": { "NSMicrophoneUsageDescription": "Microphone access is only needed for Audio Calls", @@ -99,7 +101,7 @@ ] }, "linux": { - "artifactName": "ReticulumMeshChat-v${version}-${os}.${ext}", + "artifactName": "ReticulumMeshChatX-v${version}-${os}.${ext}", "target": [ "AppImage", "deb" @@ -120,10 +122,10 @@ "writeUpdateInfo": false }, "portable": { - "artifactName": "ReticulumMeshChat-v${version}-${os}-portable.${ext}" + "artifactName": "ReticulumMeshChatX-v${version}-${os}-portable.${ext}" }, "nsis": { - "artifactName": "ReticulumMeshChat-v${version}-${os}-installer.${ext}", + "artifactName": "ReticulumMeshChatX-v${version}-${os}-installer.${ext}", "oneClick": false, "allowToChangeInstallationDirectory": true }