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