Skip to content

Commit

Permalink
bump version to 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhall88 committed Apr 6, 2023
1 parent 392b4f1 commit 92486eb
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 56 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

## [0.7.1]

### Added

- Install script and support for more binary triple targets
Expand Down Expand Up @@ -132,6 +134,8 @@ be 1070.

[0.7.0]: https://github.com/mbhall88/rasusa/compare/0.6.1...0.7.0

[0.7.1]: https://github.com/mbhall88/rasusa/compare/0.7.0...0.7.1

[19]: https://github.com/mbhall88/rasusa/issues/19

[22]: https://github.com/mbhall88/rasusa/issues/22
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "rasusa"
description = "Randomly subsample reads to a specified coverage"
version = "0.7.0"
version = "0.7.1"
authors = ["Michael Hall <michael@mbh.sh>"]
edition = "2018"
repository = "https://github.com/mbhall88/rasusa"
Expand Down
95 changes: 41 additions & 54 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,45 @@ you need. And if this is the case, `rasusa` has you covered.

## Install

Some of these installation options require the [`rust` toolchain][rust], which is
extremely easy to set up. However, if you do not wish to install `rust` then there are a
number of options available.
**tl;dr**: precompiled binary

```shell
curl -sSL rasusa.mbh.sh | sh
# or with wget
wget -nv -O - rasusa.mbh.sh | sh
```

You can also pass options to the script like so

```
$ curl -sSL rasusa.mbh.sh | sh -s -- --help
install.sh [option]
Fetch and install the latest version of rasusa, if rasusa is already
installed it will be updated to the latest version.
Options
-V, --verbose
Enable verbose output for the installer
-f, -y, --force, --yes
Skip the confirmation prompt during installation
-p, --platform
Override the platform identified by the installer [default: apple-darwin]
-b, --bin-dir
Override the bin installation directory [default: /usr/local/bin]
-a, --arch
Override the architecture identified by the installer [default: x86_64]
-B, --base-url
Override the base URL used for downloading releases [default: https://github.com/mbhall88/ssubmit/releases]
-h, --help
Display this help message
```

### `cargo`

Expand Down Expand Up @@ -115,7 +151,7 @@ The above will use the latest version. If you want to specify a version then use
[tag][quay.io] (or commit) like so.

```sh
VERSION="0.7.0"
VERSION="0.7.1"
URI="docker://quay.io/mbhall88/rasusa:${VERSION}"
```

Expand All @@ -133,55 +169,6 @@ docker run quay.io/mbhall88/rasusa --help
You can find all the available tags on the [quay.io repository][quay.io]. Note: versions
prior to 0.4.0 were housed on [Docker Hub](https://hub.docker.com/r/mbhall88/rasusa).


### `homebrew`

Prerequisite: [`homebrew`][homebrew]

The `homebrew` installation is done via the [homebrew-bio tap][brew-tap].

```sh
brew tap brewsci/bio
brew install rasusa
```

or

```sh
brew install brewsci/bio/rasusa
```

### Release binaries

**tl;dr**: Run the following snippet to download the binary for your system to the
current directory and show the help menu.

```shell
VERSION="0.7.0" # change accordingly
OS=$(uname -s)
if [ "$OS" = "Linux" ]; then
triple="x86_64-unknown-linux-musl"
elif [ "$OS" = "Darwin" ]; then
triple="x86_64-apple-darwin"
else
echo "ERROR: $OS not a recognised operating system"
fi
if [ -n "$triple" ]; then
URL="https://github.com/mbhall88/rasusa/releases/download/${VERSION}/rasusa-${VERSION}-${triple}.tar.gz"
wget "$URL" -O - | tar -xzf -
./rasusa --help
fi
```

These binaries _do not_ require that you have the `rust` toolchain installed.

Currently, there are two pre-compiled binaries available:
- Linux kernel `x86_64-unknown-linux-musl` (works on most Linux distributions I tested)
- OSX kernel `x86_64-apple-darwin` (works for any post-2007 Mac)

If these binaries do not work on your system please raise an issue, and I will
potentially add some additional [target triples][triples].

### Build locally

Prerequisite: [`rust` toolchain][rust]
Expand Down Expand Up @@ -382,7 +369,7 @@ verbosity is switched on, you will additionally get "debug" level logging messag
```text
$ rasusa --help
rasusa 0.7.0
rasusa 0.7.1
Michael Hall <michael@mbh.sh>
Randomly subsample reads to a specified coverage
Expand Down

0 comments on commit 92486eb

Please sign in to comment.