Skip to content

Commit 549235a

Browse files
authored
Merge pull request #21 from p-x9/feature/build-command-output
Support output files for build command
2 parents 101f3a9 + af6d3a8 commit 549235a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Plugins/RunScriptPlugin/plugin.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ struct RunScriptPlugin: BuildToolPlugin {
4747
displayName: "RunScriptPlugin(Build)",
4848
executable: tool.path,
4949
arguments: arguments + ["--timing", "build"],
50-
environment: environments
50+
environment: environments,
51+
outputFiles: [workingDirectory]
5152
)
5253
]
5354
}

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ prebuild: # prebuild Command
3737
file: "update_schema.sh" # Execute .sh file
3838

3939
build: # build Command
40-
- name: "Hello"
41-
script: "echo Hello"
40+
- name: "Hello"
41+
script: "echo Hello"
42+
- name: "Make Swift Code"
43+
script: |
44+
echo "public enum Hello { case a,b,c,d }" > $RUN_SCRIPT_PLUGIN_WORK_DIR/tmp.swift"
4245
4346
command: # Command Plugin
4447
- name: "Hello from Command"

0 commit comments

Comments
 (0)