Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
naomijub authored Sep 14, 2020
1 parent f4f2b24 commit da6b75a
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions clj-brcode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,29 @@ Clojure wrapper of `brcode` to parse and emit [PIX BR Code](https://www.bcb.gov.
:dependencies [[org.clojure/clojure "1.10.1"]
[clj-brcode "1.0.0-SNAPSHOT"]]
```
2. Copy `libbrcode.*` from [brcode](https://github.com/naomijub/brcode/tree/master/clj-brcode) to your Clojure project root:
- for linux copy `libbrcode.so`.
- for macos copy `libbrcode.dylib`.
- `cargo build --release` project from [git](https://github.com/naomijub/brcode) and copy the `libbrcode.*` from `target/release/libbrcode.*` to your Clojure project root
2. Copy `libbrcode.*` from [brcode](https://github.com/naomijub/brcode/tree/master/clj-brcode) to your Clojure project root:
- for linux copy `libbrcode.so`.
- for macos copy `libbrcode.dylib`.
- `cargo build --release` project from [git](https://github.com/naomijub/brcode) and copy the `libbrcode.*` from `target/release/libbrcode.*` to your Clojure project root
- Shellscript to get files from release:

**So**
```sh
curl -s https://api.github.com/repos/naomijub/brcode/releases/latest \
| grep "browser_download_url.*so" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
```

**dylib**
```sh
curl -s https://api.github.com/repos/naomijub/brcode/releases/latest \
| grep "browser_download_url.*dylib" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
```

3. require it in your project namespace `(:require [clj-brcode.core :as pix]))`.

Expand Down

0 comments on commit da6b75a

Please sign in to comment.