From 9f3407b8c655bae1a1e0945daef89ec61e61e218 Mon Sep 17 00:00:00 2001 From: Marcus Kok Date: Thu, 4 Apr 2024 12:48:51 -0400 Subject: [PATCH] add goreleaser config, update READMe --- .gitignore | 2 ++ .goreleaser.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ README.md | 6 ++++-- 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore index 40e5c84..a326584 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,5 @@ vendor/ go.work tmp/ + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..4094b76 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,46 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com + +# The lines below are called `modelines`. See `:help modeline` +# Feel free to remove those if you don't want/need to use them. +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=cnqoj + +version: 1 + +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy + # you may remove this if you don't need go generate + - go generate ./... + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + +archives: + - format: tar.gz + # this name template makes the OS and Arch compatible with the results of `uname`. + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + # use zip for windows archives + format_overrides: + - goos: windows + format: zip + +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:" diff --git a/README.md b/README.md index f00e424..ff91067 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,13 @@ updating them with git. ```bash # init sets up the config file and directory to hold all dotfiles -dotctl init --dotfile-path=/path/to/dotfile/repo +dotctl init # add a config directory for dotctl to track -dotctl add /.config/nvim +dotctl add ~/.config/nvim # create symlinks dotctl link +# sync changes +dotctl sync -r ``` ## Development