Skip to content

Commit

Permalink
Merge pull request #31 from yukihirop/issue24/support_homebrew
Browse files Browse the repository at this point in the history
Allow homebrew to be town loaded
  • Loading branch information
yukihirop authored Dec 24, 2020
2 parents 3c100bf + 2dd8ff7 commit ec62523
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## v0.1.1

2020/12/24

- Support to install by homebrew

Please see [milestone v0.1.1](https://github.com/yukihirop/ultraman/milestone/2?closed=1)

## v0.1.0

2020/12/13
Expand Down
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ GIT_REVISION=$(shell git log -1 --format="%h")
RUST_VERSION=$(word 2, $(shell rustc -V))
LONG_VERSION="$(VERSION) ( rev: $(GIT_REVISION), rustc: $(RUST_VERSION), build at: $(BUILD_TIME) )"
BIN_NAME=ultraman
BASE_RELEASE_FILES := ./tmp/ultraman.1 README.md LICENSE

export LONG_VERSION

Expand All @@ -28,15 +29,15 @@ test-no-default-features:
cargo test --locked --no-default-features
cargo test --locked --no-default-features -- --ignored

release_linux:
release_linux: create_man
cargo build --locked --release --target=x86_64-unknown-linux-musl
zip -j ${BIN_NAME}-v${VERSION}-x86_64-linux.zip target/x86_64-unknown-linux-musl/release/${BIN_NAME}
zip -j ${BIN_NAME}-v${VERSION}-x86_64-linux.zip target/x86_64-unknown-linux-musl/release/${BIN_NAME} $(strip $(BASE_RELEASE_FILES))

release_win:
release_win: create_man
cargo build --locked --release --target=x86_64-pc-windows-msvc
7z a ${BIN_NAME}-v${VERSION}-x86_64-win.zip target/x86_64-pc-windows-msvc/release/${BIN_NAME}.exe
7z a ${BIN_NAME}-v${VERSION}-x86_64-win.zip target/x86_64-pc-windows-msvc/release/${BIN_NAME}.exe $(strip $(BASE_RELEASE_FILES))

release_mac:
release_mac: create_man
cargo build --locked --release --target=x86_64-apple-darwin
zip -j ${BIN_NAME}-v${VERSION}-x86_64-mac.zip target/x86_64-apple-darwin/release/${BIN_NAME}
zip -j ${BIN_NAME}-v${VERSION}-x86_64-mac.zip target/x86_64-apple-darwin/release/${BIN_NAME} $(strip $(BASE_RELEASE_FILES))

9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ So the specifications are exactly the same as ruby ​​`foreman`.

## 🦀 Installation

Download binary
### Download binary

Download from [release page](https://github.com/yukihirop/ultraman/releases), and extract to the directory in PATH.

Expand All @@ -24,6 +24,13 @@ git clone [email protected]:yukihirop/ultraman.git && cd ultraman
make install_man
```

### Homebrew

```bash
brew tap yukihirop/homebrew-tap
brew install ultraman
```

## 💻 Command

```
Expand Down

0 comments on commit ec62523

Please sign in to comment.