Skip to content

Commit

Permalink
Merge pull request #6 from uhooi/feature/update_readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
uhooi authored Sep 27, 2021
2 parents 8b43c82 + b15df94 commit a1cb339
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,39 @@ $ mint run uhooi/swift-output-uhooi uhooi -h

### Swift Package Manager

TBD
1. Create a folder for the CLI tools.
Example: `FooTools` folder.

2. In this folder, create a file called `Package.swift` , with the following contents:

```swift
// swift-tools-version:5.4

import PackageDescription

let package = Package(
name: "FooTools",
platforms: [
.macOS(.v10_10),
],
dependencies: [
.package(url: "https://github.com/uhooi/swift-output-uhooi", exact: "0.1.0"),
],
targets: [.target(name: "FooTools", path: "")]
)
```

3. If you are running Xcode 11.4 or later, in the `FooTools` folder create a file called `Empty.swift` with nothing in it. This is to satisfy a change in Swift Package Manager.

4. Build and run.

```shell
$ swift build -c release ----package-path FooTools --product uhooi

$ FooTools/.build/release/uhooi -h
```

### Manual
### Clone and Build/run

```shell
$ git clone https://github.com/uhooi/swift-output-uhooi.git
Expand Down

0 comments on commit a1cb339

Please sign in to comment.