Skip to content

Commit

Permalink
Added export launch task
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Sep 10, 2024
1 parent c381221 commit 3c2acfb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,19 @@
"--show-output"
],
"cwd": "${workspaceFolder:ReleaseTools}/../Stack",
"name": "Debug -- Stack",
"name": "Debug -- archive Stack",
"program": "${workspaceFolder:ReleaseTools}/.build/debug/rt",
"preLaunchTask": "swift: Build Debug rt"
},
{
"type": "swift-lldb",
"request": "launch",
"args": [
"export",
"--platform=macOS",
],
"cwd": "${workspaceFolder:ReleaseTools}/../Stack",
"name": "Debug -- export Stack",
"program": "${workspaceFolder:ReleaseTools}/.build/debug/rt",
"preLaunchTask": "swift: Build Debug rt"
},
Expand Down
3 changes: 2 additions & 1 deletion Sources/ReleaseTools/Commands/ExportCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct ExportCommand: AsyncParsableCommand {
throw ExportError.writingOptionsFailed(error)
}

parsed.log("Exporting \(parsed.scheme).")
parsed.log("Exporting \(parsed.scheme)...")
let xcode = XCodeBuildRunner(parsed: parsed)
try? FileManager.default.removeItem(at: parsed.exportURL)
let result = xcode.run([
Expand All @@ -78,5 +78,6 @@ struct ExportCommand: AsyncParsableCommand {
])

try await result.throwIfFailed(ExportRunnerError.exportFailed)
parsed.log("Exported \(parsed.scheme).")
}
}

0 comments on commit 3c2acfb

Please sign in to comment.