wip
This commit is contained in:
@@ -11,10 +11,10 @@ struct GenerateVersionBuildPlugin: BuildToolPlugin {
|
|||||||
let tool = try context.tool(named: "git-version")
|
let tool = try context.tool(named: "git-version")
|
||||||
let outputPath = context.pluginWorkDirectory
|
let outputPath = context.pluginWorkDirectory
|
||||||
|
|
||||||
try FileManager.default.createDirectory(
|
// try FileManager.default.createDirectory(
|
||||||
atPath: outputPath.string,
|
// atPath: outputPath.string,
|
||||||
withIntermediateDirectories: true
|
// withIntermediateDirectories: true
|
||||||
)
|
// )
|
||||||
|
|
||||||
let outputFile = outputPath.appending("Version.swift")
|
let outputFile = outputPath.appending("Version.swift")
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ struct GenerateVersionBuildPlugin: BuildToolPlugin {
|
|||||||
.buildCommand(
|
.buildCommand(
|
||||||
displayName: "Build With Version",
|
displayName: "Build With Version",
|
||||||
executable: tool.path,
|
executable: tool.path,
|
||||||
arguments: ["generate", outputPath.string],
|
arguments: ["generate", "--verbose", outputPath.string],
|
||||||
environment: [:],
|
environment: [:],
|
||||||
inputFiles: target.sourceFiles.map(\.path),
|
inputFiles: target.sourceFiles.map(\.path),
|
||||||
outputFiles: [outputFile]
|
outputFiles: [outputFile]
|
||||||
|
|||||||
Reference in New Issue
Block a user