Skip to content

Commit

Permalink
add rule to copy app extensions ('.appex') to product's Plugins direc…
Browse files Browse the repository at this point in the history
…tory
  • Loading branch information
iljaiwas committed Feb 10, 2025
1 parent 5644662 commit ff4e654
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/ProjectSpec/BuildPhaseSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ public enum BuildPhaseSpec: Equatable {
phaseOrder: .postCompile
)

public static let plugins = CopyFilesSettings(
destination: .plugins,
subpath: "$(CONTENTS_FOLDER_PATH)/PlugIns",
phaseOrder: .postCompile
)

public enum Destination: String {
case absolutePath
case productsDirectory
Expand Down
1 change: 1 addition & 0 deletions Sources/ProjectSpec/FileType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ extension FileType {

// copyfiles
"xpc": FileType(buildPhase: .copyFiles(.xpcServices)),
"appex": FileType(buildPhase: .copyFiles(.plugins)),

// no build phase (not resources)
"xcconfig": FileType(buildPhase: BuildPhaseSpec.none),
Expand Down

0 comments on commit ff4e654

Please sign in to comment.