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
28 changes: 27 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ before:
- go mod tidy

builds:
- env:
- id: adapt
main: ./main.go
binary: adapt
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}

archives:
- formats: [tar.gz]
Expand All @@ -42,3 +50,21 @@ changelog:
- "^test:"

release:
github:
owner: ericsuh
name: adapt
draft: false
prerelease: auto
mode: replace
header: |
## Release {{.Version}}

Download the appropriate archive for your system below.

footer: |
## Installation

1. Download the archive for your system
2. Extract: `tar -xzf adapt_{{.Version}}_linux_*.tar.gz`
3. Move to PATH: `sudo mv adapt /usr/local/bin/`
4. Make executable: `sudo chmod +x /usr/local/bin/adapt`
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func addPPA(ppa string, dryRun bool) error {
ensuredAddAptRepository = true
} else {
fmt.Println("Installing required utility add-apt-repository (package software-properties-common)")
err := installPackages([]aptfile.PackageDirective{aptfile.PackageDirective{Name: "software-properties-common"}}, dryRun)
err := installPackages([]aptfile.PackageDirective{{Name: "software-properties-common"}}, dryRun)
if err != nil {
return err
}
Expand Down