From 8adea62218a118400cf9c0d41fabe1ab8df60885 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 20 Jun 2026 02:43:41 +0100 Subject: [PATCH] Include .pkg artifacts in the archive process and modified package.json to add support for pkg targets for both arm64 and x64 architectures, enhancing the build configuration. --- Jenkinsfile | 2 +- package.json | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9b9251a..48e8f7e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -78,7 +78,7 @@ def buildOnLabel(label, buildCommand) { } stage("Archive Artifacts (${label})") { - archiveArtifacts artifacts: 'app_dist/**/*.dmg, app_dist/**/*.exe', fingerprint: true + archiveArtifacts artifacts: 'app_dist/**/*.dmg, app_dist/**/*.exe, app_dist/**/*.pkg', fingerprint: true } } } diff --git a/package.json b/package.json index 5d271ed..45c032f 100644 --- a/package.json +++ b/package.json @@ -148,11 +148,23 @@ "arm64" ] }, + { + "target": "pkg", + "arch": [ + "arm64" + ] + }, { "target": "dmg", "arch": [ "x64" ] + }, + { + "target": "pkg", + "arch": [ + "x64" + ] } ], "mergeASARs": true, @@ -189,6 +201,12 @@ } ] }, + "pkg": { + "installLocation": "/Applications", + "mustClose": [ + "com.tombutcher.farmcontrol" + ] + }, "win": { "target": "nsis" },