Fix work build path used in mac crafter packaging stage

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-09-20 18:08:09 +08:00
parent 57b1e12c16
commit 5d21a294ad
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -193,7 +193,6 @@ struct Build: ParsableCommand {
let allOptionsString = craftOptions.map({ "--options \"\($0)\"" }).joined(separator: " ")
let buildWorkPath = "\(buildPath)/\(craftTarget)/build"
let clientBuildDir = "\(buildPath)/\(craftTarget)/build/\(craftBlueprintName)"
if fullRebuild {
do {
@ -230,8 +229,8 @@ struct Build: ParsableCommand {
if package {
print("Creating pkg file for client…")
let packagePath =
try buildPackage(
let buildWorkPath = "\(clientBuildDir)/work/build"
let packagePath = try buildPackage(
appName: appName,
buildWorkPath: buildWorkPath,
productPath: productPath