Skip to content

Commit

Permalink
update README, remove install script, update goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanhawari committed Mar 14, 2022
1 parent 4fc13dc commit cffaf0f
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 183 deletions.
16 changes: 14 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,24 @@ builds:
- "amd64"
- "386"
archives:
- format: "binary"
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
- name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
checksum:
name_template: "checksums.txt"
changelog:
skip: true
nfpms:
- builds:
- stew
vendor: marwanhawari
homepage: "https://github.com/marwanhawari/stew"
maintainer: "Marwan Hawari <[email protected]>"
description: "An independent package manager for compiled binaries"
license: MIT
formats:
- apk
- deb
- rpm
bindir: /usr/bin
brews:
- tap:
owner: marwanhawari
Expand Down
81 changes: 52 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,35 +43,58 @@
![demo](https://github.com/marwanhawari/stew/raw/main/assets/demo.gif)

# Installation
Stew supports Linux, macOS, and Windows.

### Install a pre-compiled binary:

* Install using `curl`:
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/marwanhawari/stew/main/install.sh)"
```

* Install using `brew`:
```
brew install marwanhawari/tap/stew
```

* Download a pre-compiled binary from the [releases page](https://github.com/marwanhawari/stew/releases).

### Install from source:

* Install the latest released version:
```
go install github.com/marwanhawari/stew@latest
```

* Install the latest unreleased source:
```
git clone https://github.com/marwanhawari/stew
cd stew
go install .
```
Stew supports macOS, Linux, and Windows.

### Install using a package manager
<details>
<summary>macOS</summary>

```sh
brew install marwanhawari/tap/stew
```
</details>

<details>
<summary>Debian/Ubuntu</summary>

```sh
apt update && apt install -y software-properties-common
add-apt-repository ppa:marwanhawari/stew
apt update && apt install -y stew
```
</details>

<details>
<summary>Arch</summary>

```sh
git clone https://aur.archlinux.org/stew.git
cd stew
makepkg -sric
```
</details>

### Download a compiled binary
Compiled binaries can be downloaded from the [releases page](https://github.com/marwanhawari/stew/releases).

### Install using Go
<details>
<summary>Install the latest released version</summary>

```sh
go install github.com/marwanhawari/stew@latest
```
</details>

<details>
<summary>Install the latest unreleased source</summary>

```sh
git clone https://github.com/marwanhawari/stew
cd stew
go install .
```
</details>

# Usage
### Install
Expand Down
152 changes: 0 additions & 152 deletions install.sh

This file was deleted.

0 comments on commit cffaf0f

Please sign in to comment.