Skip to content

Commit

Permalink
Simplify installing the app (#30)
Browse files Browse the repository at this point in the history
* Generate install.sh script

* Update README.md
  • Loading branch information
pkosiec authored May 13, 2019
1 parent bba45d2 commit 0507dfe
Show file tree
Hide file tree
Showing 4 changed files with 436 additions and 15 deletions.
23 changes: 12 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ builds:
- arm64
ldflags:
- -s -w -X "github.com/pkosiec/terminer/internal/metadata.Version={{.Version}}"
archive:
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
archives:
- id: default
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,16 @@ Not anymore. Use Terminer. Bootstrap your complete shell configuration in a mome

## Installation

> **:construction: There are no releases available yet.** It will change soon, but for now use Go binary to install this project. In future there will be placed a one-liner to install the project from latest GitHub release.
To install this tool, run the following command:

```bash
go get -u github.com/pkosiec/terminer
curl -sfL https://raw.githubusercontent.com/pkosiec/terminer/master/install.sh | sh
```

## Usage

Terminer operates on recipes, which consist of shell commands.
The most basic commands are `install` and `rollback`.
The most essential commands are `install` and `rollback`.

### Quick start

Expand Down
15 changes: 15 additions & 0 deletions hack/regenerate-install-sh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -o errexit
set -o nounset
set -o pipefail

echo "Installing latest godownloader..."
go get github.com/goreleaser/godownloader

INSTALL_SCRIPT="install.sh"

echo "Generating install.sh script..."
cd $(dirname ${BASH_SOURCE})/..
godownloader .goreleaser.yml --repo=pkosiec/terminer > ${INSTALL_SCRIPT}
chmod +x ${INSTALL_SCRIPT}
Loading

0 comments on commit 0507dfe

Please sign in to comment.