@Option(name: [.long], help: "CraftMaster git url.")
var craftMasterGitUrl = "https://invent.kde.org/packaging/craftmaster.git"
- @Option(name: [.long], help: "Nextcloud Desktop Client git url.")
+ @Option(name: [.long], help: "Nextcloud Desktop Client craft blueprint git url.")
var clientBlueprintsGitUrl = "https://github.com/nextcloud/desktop-client-blueprints.git"
+ @Option(name: [.long], help: "Nextcloud Desktop Client craft blueprint name.")
+ var craftBlueprintName = "nextcloud-client"
+
@Option(name: [.long], help: "Build type (e.g. Release, RelWithDebInfo, MinSizeRel, Debug).")
var buildType = "RelWithDebInfo"
shell("\(craftCommand) craft")
print("Crafting Nextcloud Desktop Client dependencies...")
- shell("\(craftCommand) --install-deps nextcloud-client")
+ shell("\(craftCommand) --install-deps \(craftBlueprintName)")
}
var craftOptions: [String] = []
if !craftOptions.isEmpty {
let craftOptionsArg = craftOptions.map { "--set \"\($0)\"" }
for option in craftOptions {
- shell("\(craftCommand) \(option) nextcloud-client")
+ shell("\(craftCommand) \(option) \(craftBlueprintName)")
}
}
let craftBuildDir = "\(buildPath)/\(craftTarget)/build"
let clientAppDir =
- "\(craftBuildDir)/nextcloud-client/image-\(buildType)-master/\(appName).app"
+ "\(craftBuildDir)/\(craftBlueprintName)/image-\(buildType)-master/\(appName).app"
try codesignClientAppBundle(at: clientAppDir, withCodeSignIdentity: codeSignIdentity)
print("Done!")