Skip to content

Commit 5ccdac7

Browse files
authored
update foundryup (foundry-rs#5653)
1 parent 9c339c1 commit 5ccdac7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

foundryup/foundryup

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ main() {
5858
# Enter local repo and build
5959
say "installing from $FOUNDRYUP_LOCAL_REPO"
6060
cd "$FOUNDRYUP_LOCAL_REPO"
61-
ensure cargo build --release # need 4 speed
61+
ensure cargo build --bins --release # need 4 speed
6262

6363
for bin in "${BINS[@]}"; do
6464
# Remove prior installations if they exist
@@ -204,12 +204,10 @@ EOF
204204
fi
205205

206206
# Build the repo and install the binaries locally to the .foundry bin directory.
207-
# --root appends /bin to the directory it is given, so we pass FOUNDRY_DIR.
208-
ensure cargo install --path ./cli --bins --locked --force --root "$FOUNDRY_DIR"
209-
# install anvil
210-
ensure cargo install --path ./anvil --bin anvil --locked --force --root "$FOUNDRY_DIR"
211-
# install chisel
212-
ensure cargo install --path ./chisel --bin chisel --locked --force --root "$FOUNDRY_DIR"
207+
ensure cargo build --bins --release
208+
for bin in "${BINS[@]}"; do
209+
mv -f "target/release/$bin" "target/release/$bin.exe" "$FOUNDRY_DIR"
210+
done
213211

214212
# If help2man is installed, use it to add Foundry man pages.
215213
if check_cmd help2man; then
@@ -315,4 +313,4 @@ Contribute : https://github.com/orgs/foundry-rs/projects/2/
315313
}
316314

317315

318-
main "$@" || exit 1
316+
main "$@" || exit 1

0 commit comments

Comments
 (0)