Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ builds:
- -trimpath
ldflags:
- -s -w -X main.version={{ .Version }} -X main.commit={{ .ShortCommit }} -X main.date={{ .Date }}
- id: simplelogin
main: ./cmd/sl
binary: simplelogin
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{ .Version }} -X main.commit={{ .ShortCommit }} -X main.date={{ .Date }}

archives:
- id: default
Expand Down Expand Up @@ -73,5 +90,7 @@ brews:
license: "MIT"
install: |
bin.install "sl"
bin.install "simplelogin"
test: |
system "#{bin}/sl", "--version"
system "#{bin}/simplelogin", "--version"
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ LDFLAGS := -s -w \

build:
go build -ldflags="$(LDFLAGS)" -o bin/sl ./cmd/sl
cp bin/sl bin/simplelogin

PREFIX ?= /usr/local
install: build
install -d $(DESTDIR)$(PREFIX)/bin
install -m 755 bin/sl $(DESTDIR)$(PREFIX)/bin/sl
install -m 755 bin/simplelogin $(DESTDIR)$(PREFIX)/bin/simplelogin

test:
go test ./...
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ go install github.com/mexcool/simplelogin-cli/cmd/sl@latest

### GitHub Releases

Download pre-built binaries for your platform from the [Releases](https://github.com/mexcool/simplelogin-cli/releases) page.
Download pre-built binaries for your platform from the [Releases](https://github.com/mexcool/simplelogin-cli/releases) page. Each release includes both `sl` and `simplelogin` binaries.

> **Note:** The primary command is `sl`. If that conflicts with another tool (e.g., the [steam locomotive](https://github.com/mtoyoda/sl)), use `simplelogin` instead — it's the same binary under a different name. All examples in this README use `sl` but `simplelogin` works identically.

### From source

Expand Down
Loading