Skip to content

Commit

Permalink
Add installation notes
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksey-mashanov committed Nov 29, 2020
1 parent 40d9ac3 commit 4c4e148
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,36 @@ sem.wait()
sem.wait()
```

## Installation of the `ddc` command line tool

### Using [brew](https://brew.sh/)

```sh
brew install aleksey-mashanov/brisyncd/ddc
```

### Manual

```sh
swift build -c release
cp `swift build -c release --show-bin-path`/ddc /usr/local/bin/
```

## Adding the `DDC` library as a dependency

To use the `DDC` library in a SwiftPM project, add the following line to the dependencies
in your `Package.swift` file:

```swift
.package(url: "https://github.com/aleksey-mashanov/swift-ddc.git", from: "1.0.0"),
```

Finally, include `DDC` as a dependency for your executable target:

```swift
.product(name: "DDC", package: "swift-ddc"),
```

## Credits

The original idea was taken from:
Expand Down

0 comments on commit 4c4e148

Please sign in to comment.