Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions foundryup/foundryup
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ main() {
# Enter local repo and build
say "installing from $FOUNDRYUP_LOCAL_REPO"
cd "$FOUNDRYUP_LOCAL_REPO"
ensure cargo build --release # need 4 speed
ensure cargo build --bins --release # need 4 speed

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

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

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


main "$@" || exit 1
main "$@" || exit 1