Skip to content

Commit 9a727bc

Browse files
ensure the build script clears the target/dist directory
1 parent 4724cda commit 9a727bc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build_binaries.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ targets=(
1212

1313
version=$(cargo run --bin rusty_man_computer -- --version | cut -d ' ' -f 2)
1414

15+
# Clear the `target/dist` directory
1516
mkdir -p target/dist
17+
rm target/dist/*
18+
1619
for target in "${targets[@]}"; do
20+
echo "Building for $target"
1721
cross build --release --target "$target"
1822
# Copy both binaries to `target/dist`
1923
cp "target/$target/release/rusty_man_computer" "target/dist/rusty-man-computer-$version-$target" || \

0 commit comments

Comments
 (0)