Skip to content

Commit

Permalink
install+docs: add script to README (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmatteini committed Jan 7, 2025
1 parent d518269 commit b07b859
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ You can do everything `dra` does with the official [GitHub cli](https://cli.gith
Download the prebuilt versions of `dra` for all supported platforms from
the [latest release](https://github.com/devmatteini/dra/releases/latest).

You can use this script to automatically download the latest release across all supported platforms.
Replace `<DESTINATION>` with the path where you want to place dra (e.g `~/.local/bin`).
If you omit `--to` option, the default value is the current working directory.

```shell
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/devmatteini/dra/refs/heads/main/install.sh | bash -s -- --to <DESTINATION>
```

### Debian-based distributions

Download the latest `.deb` package from the [release page](https://github.com/devmatteini/dra/releases/latest) and
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ FLAGS:
-h, --help Display this message
OPTIONS:
--to LOCATION Save dra to custom path [default: current working directory]
--to <DESTINATION> Save dra to custom path [default: current working directory]
EOF
}

Expand Down

0 comments on commit b07b859

Please # to comment.