fix(build): return a clearer message on install failure
This commit is contained in:
parent
833381bca8
commit
79a053f807
1 changed files with 5 additions and 1 deletions
|
|
@ -67,7 +67,11 @@ workspace = false
|
|||
dependencies = ["build-tiles-release", "wasm-opt-tiles", "build-release"]
|
||||
script_runner = "@duckscript"
|
||||
script = '''
|
||||
if is_dir ${CARGO_MAKE_TASK_ARGS}
|
||||
trigger_error "You need to specify a full path for the binary, not just a directory!"
|
||||
else
|
||||
cp ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target/release/${CARGO_MAKE_CRATE_NAME} ${CARGO_MAKE_TASK_ARGS}
|
||||
end
|
||||
'''
|
||||
|
||||
[tasks.build-tiles-release]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue