Skip to content

Commit

Permalink
Change file name
Browse files Browse the repository at this point in the history
Edit build

add new dockerfile

Add brew to readme
  • Loading branch information
maciej-tatarski committed Dec 30, 2023
1 parent 77c5b08 commit 1582f7e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .goreleaser → .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,23 @@ builds:
- arm64
env:
- CGO_ENABLED=0
flags:
- -mod=vendor

release:
prerelease: auto

dockers:
image_templates:
- dockerfile: "dockerfiles/goreleaser.dockerfile"
image_templates:
- "mactat/framed:latest"
- "mactat/framed:{{ .Tag }}"
dockerfile: "dockerfiles/dockerfile"

universal_binaries:
- replace: true

brews:
- name: framed
homepage: "https://github.com/mactat/framed"
tap:
repository:
owner: mactat
name: homebrew-mactat
commit_author:
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,28 +100,41 @@ The allowChildren property, when set to true, permits the presence of additional
## Installation
### Brew Installation
1. Open a terminal and run the following command:
```shell
brew ta mactat/mactat
brew install framed
```

### Darwin (macOS) Installation

1. Download the `framed-darwin-amd64-<version>.tar.gz` package from release page.

2. Extract the package by double-clicking on the downloaded file or using a tool like `tar` in your terminal:

```shell
tar -xzf framed-darwin-amd64-<version>.tar.gz
```

3. This will extract the `framed` binary.

4. Open a terminal and navigate to the extracted directory:

```shell
cd framed-darwin-amd64-<version>
```

5. Make the binary executable by running the following command:

```shell
chmod +x framed
```

6. Move the `framed` binary to a directory in your system's `PATH` so that it can be accessed from anywhere. For example:

```shell
sudo mv framed /usr/local/bin/
```
Expand All @@ -133,23 +146,27 @@ The allowChildren property, when set to true, permits the presence of additional
1. Download the `framed-linux-amd64-<version>.tar.gz` package from release page.

2. Extract the package using the following command in your terminal:

```shell
tar -xzf framed-linux-amd64-<version>.tar.gz
```

3. This will extract the `framed` binary.

4. Open a terminal and navigate to the extracted directory:

```shell
cd framed-linux-amd64-<version>
```

5. Make the binary executable by running the following command:

```shell
chmod +x framed
```

6. Move the `framed` binary to a directory in your system's `PATH` so that it can be accessed from anywhere. For example:

```shell
sudo mv framed /usr/local/bin/
```
Expand Down Expand Up @@ -240,6 +257,7 @@ Currently available examples:
See [examples](./examples) for more details.

## Running from docker

To run framed from docker, run the following command:

```bash
Expand Down
5 changes: 5 additions & 0 deletions dockerfiles/goreleaser.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG ALPINE_VERSION=3.18

FROM alpine:${ALPINE_VERSION} as release
COPY framed /bin/framed
CMD [ "/bin/sh" ]

0 comments on commit 1582f7e

Please sign in to comment.