File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ else if \
4949else \
5050 { " --target " + target }
5151
52+ bin_name := \
53+ if \
54+ os == " windows" { project_name + " .exe" } \
55+ else \
56+ { project_name }
57+
5258out_dir := join (justfile_directory (), " target" , os + " -" + arch , profile)
5359out_dir_link := join (justfile_directory (), " target" , profile)
5460
@@ -60,15 +66,9 @@ build:
6066 @ cp " ./target/.cargo/{{ target}} /{{ profile}} /{{ project_name}} " " {{ out_dir}} "
6167 @ # ln -rs "{{out_dir}}" "{{out_dir_link}}"
6268
63- [unix ]
64- run * ARGS :
65- just build
66- {{ out_dir}} / {{ project_name}} {{ ARGS}}
67-
68- [windows ]
6969run * ARGS :
7070 just build
71- {{ out_dir}} / {{ project_name }} .exe {{ ARGS}}
71+ {{ out_dir}} / {{ bin_name }} {{ ARGS}}
7272
7373test :
7474 cargo test
You can’t perform that action at this time.
0 commit comments