Skip to content

Commit

Permalink
Merge pull request #2 from thrackle-io/2024-10-7-foundryup-readme
Browse files Browse the repository at this point in the history
README for Thrackle's foundryup
  • Loading branch information
excalq authored Oct 8, 2024
2 parents b1917ec + 484600f commit e74891b
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions foundryup/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,45 @@
# `foundryup`
# Thrackle.io's `foundryup`

Update or revert to a specific Foundry branch with ease.
Update or revert to a specific Foundry version, commit, or branch with ease.

> [!NOTE]
> This repository contains trivial modifications to `foundryup` enabling `foundryup --version`
> This repository contains minor modifications to `foundryup` enabling `foundryup --version`
> to download precompiled binaries from the [thrackle-io/foundry](https://github.com/thrackle-io/foundry) repository.
>
> All binaries are bit-for-bit identical copies from [foundry-rs/foundry nightly releases](https://github.com/foundry-rs/foundry/releases)
> This repository provides weekly _versioned releases_ which attach unmodified binaries from [foundry-rs/foundry](https://github.com/foundry-rs/foundry/releases).
## Installing

```sh
curl -L https://foundry.paradigm.xyz | bash
mkdir -p $HOME/.foundry/bin/
FOUNDRY_DIR=$HOME/.foundry
echo "export PATH=$HOME/.foundry/bin:$PATH" >> ~/.zshrc # or ~/.bashrc, etc.

curl -sSL https://raw.githubusercontent.com/thrackle-io/foundry/refs/heads/master/foundryup/foundryup -o $FOUNDRY_DIR/bin/foundryup
chmod +x $FOUNDRY_DIR/bin/foundryup
```

## Usage

To install the **nightly** version:
To install the **latest** release version:

```sh
foundryup
```

To install a specific **version** (in this case the `nightly` version):
To install a specific **version** (in this case the `v0.2.0` version):

```sh
foundryup --version v0.2.0
# The "v" prefix is optional:
foundryup --version 0.2.0
```

To install the version set in `foundry.lock`:

Awk is used to ignore comments.

```sh
foundryup --version nightly
foundryup --version $(awk '$1~/^[^#]/' foundry.lock)
```

To install a specific **branch** (in this case the `release/0.1.0` branch's latest commit):
Expand Down

0 comments on commit e74891b

Please sign in to comment.