Skip to content

Commit 34c886c

Browse files
committed
fmt precommit
1 parent 28af9a0 commit 34c886c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

justfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ else if \
4949
else \
5050
{ "--target " + target }
5151

52+
bin_name := \
53+
if \
54+
os == "windows" { project_name + ".exe" } \
55+
else \
56+
{ project_name }
57+
5258
out_dir := join(justfile_directory(), "target", os + "-" + arch, profile)
5359
out_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]
6969
run *ARGS:
7070
just build
71-
{{out_dir}}/{{project_name}}.exe {{ARGS}}
71+
{{out_dir}}/{{bin_name}} {{ARGS}}
7272

7373
test:
7474
cargo test

0 commit comments

Comments
 (0)