Skip to content

Commit

Permalink
Remove the commands for binary build
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohk committed Feb 14, 2018
1 parent 009694a commit 3545a41
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<img src="./demo.gif" height=250 align="right">
Press <kbd>control+shift+command+3</kbd> or <kbd>control+shift+command+4</kbd> to capture and copy a screenshot. Run `imgur2clip` in your terminal, then boom, the image URL is in your clipboard.



If it is your first time to run `imgur2clip`, you can choose to authorize this tool, and your image will be posted in your image collection (`username.imgur.com/all`). You also can choose to post anonymously, but it is hard to get the url later and Imgur might delete your posts.

In default setting, the URL of posted image will be copied to your clipboard. You can use flags to configure it.
Expand Down Expand Up @@ -48,21 +46,13 @@ $ brew install clip2imgur
### Download the Binary
You also can download the pre-compiled binary from the [Latest Rease](https://github.com/xiaohk/clip2imgur/releases/latest). After extract the binary, you want to put it in somewhere you won't accidentally remove later. Then you'd like to create a symbolic link in `/usr/local/bin` to launch `clip2imgur` in your terminal more quickly.

For example, the following commands download `clip2imgur` to `~/clip2imgur/clip2imgur` and add a symbolic link.

```
$ mkdir ~/clip2imgur
$ curl -o ~/clip2imgur/clip2imgur.zip https://github.com/xiaohk/clip2imgur/releases/download/v0.8/clip2imgur-0.8.0.zip
$ unzip ~/clip2imgur/clip2imgur.zip & rm ~/clip2imgur/clip2imgur.zip
$ ln -s ~/clip2imgur/clip2imgur /usr/local/bin/clip2imgur
```

### Build from Source
This approach is not recommended, because I didn't open source a function to refresh your authorization for security reasons. Your compiled version works fine, but may require you to re-authorize `clip2imgur` periodically. If you only want to post images anonymously, then it doesn't really matter.

To build `clip2imgur`, you need macOS 10.10 or later and Swift 3.0 or above.

```
$ git clone https://github.com/xiaohk/clip2imgur.git
$ cd clip2imgur
$ swift build -c release -Xswiftc -static-stdlib
$ ln -s $(pwd)/.build/release/clip2imgur /usr/local/bin/clip2imgur
Expand Down

0 comments on commit 3545a41

Please sign in to comment.