File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
ReleaseTooling/Sources/ZipBuilder Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ enum Platform: CaseIterable {
24
24
25
25
var platformTargets : [ TargetPlatform ] {
26
26
switch self {
27
- case . iOS: return [ . iOSDevice, . iOSSimulator, . catalyst]
27
+ case . iOS: return [ . iOSDevice, . iOSSimulator] + ( SkipCatalyst . skip ? [ ] : [ . catalyst] )
28
28
case . macOS: return [ . macOS]
29
29
case . tvOS: return [ . tvOSDevice, . tvOSSimulator]
30
30
}
@@ -59,3 +59,10 @@ class PlatformMinimum {
59
59
minimumTVOSVersion = tvos
60
60
}
61
61
}
62
+
63
+ class SkipCatalyst {
64
+ fileprivate static var skip = false
65
+ static func set( ) {
66
+ skip = true
67
+ }
68
+ }
Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ struct ZipBuilderTool: ParsableCommand {
79
79
help: ArgumentHelp ( " A flag to indicate keeping (not deleting) the build artifacts. " ) )
80
80
var keepBuildArtifacts : Bool
81
81
82
+ /// Flag to skip building the Catalyst slices.
83
+ @Flag ( default: false ,
84
+ inversion: . prefixedNo,
85
+ help: ArgumentHelp ( " A flag to indicate keeping (not deleting) the build artifacts. " ) )
86
+ var skipCatalyst : Bool
87
+
82
88
/// Flag to run `pod repo update` and `pod cache clean --all`.
83
89
@Flag ( default: true ,
84
90
inversion: . prefixedNo,
@@ -232,6 +238,11 @@ struct ZipBuilderTool: ParsableCommand {
232
238
macos: minimumMACOSVersion,
233
239
tvos: minimumTVOSVersion)
234
240
241
+ // Update iOS target platforms if `--skip-catalyst` was specified.
242
+ if skipCatalyst {
243
+ SkipCatalyst . set ( )
244
+ }
245
+
235
246
let paths = ZipBuilder . FilesystemPaths ( repoDir: repoDir,
236
247
buildRoot: buildRoot,
237
248
outputDir: outputDir,
You can’t perform that action at this time.
0 commit comments