Skip to content

Commit

Permalink
update archiveing
Browse files Browse the repository at this point in the history
  • Loading branch information
speatzle committed Sep 10, 2021
1 parent 35a1313 commit 42b0dc4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 18 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ jobs:
-
name: Generate Man and Completions
run: |
go run main.go completion bash > bash-completion
go run main.go completion zsh > zsh-completion
go run main.go completion fish > fish-completion
mkdir completion
go run main.go completion bash > completion/bash
go run main.go completion zsh > completion/zsh
go run main.go completion fish > completion/fish
go run main.go completion powershell > completion/powershell
mkdir man
go run main.go gendoc --type man
pwd
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
!*/

man/
completion/

# Binaries for programs and plugins
*.exe
Expand Down
27 changes: 18 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ checksum:
name_template: 'checksums.txt'
builds:
- env: [CGO_ENABLED=0]
- flags:
- -trimpath
goos:
- linux
- windows
Expand All @@ -12,12 +14,19 @@ builds:
- arm64
binary: passbolt
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files:
- completion/*
- man/*
- id: windows
format_overrides:
- goos: windows
format: zip
release:
draft: true
header: |
Expand All @@ -28,11 +37,11 @@ nfpms:
homepage: https://github.com/speatzle/go-passbolt-cli
license: MIT
contents:
- src: /home/runner/work/go-passbolt-cli/go-passbolt-cli/bash-completion
- src: /home/runner/work/go-passbolt-cli/go-passbolt-cli/completion/bash
dst: /usr/share/bash-completion/completions/passbolt
- src: /home/runner/work/go-passbolt-cli/go-passbolt-cli/zsh-completion
- src: /home/runner/work/go-passbolt-cli/go-passbolt-cli/completion/zsh
dst: /usr/share/zsh/site-functions/_passbolt
- src: /home/runner/work/go-passbolt-cli/go-passbolt-cli/fish-completion
- src: /home/runner/work/go-passbolt-cli/go-passbolt-cli/completion/fish
dst: /usr/share/fish/vendor_completions.d/passbolt.fish
- src: /home/runner/work/go-passbolt-cli/go-passbolt-cli/man/*
dst: /usr/share/man/man1/
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ If you want to do something more complicated [this](https://github.com/speatzle/
# Install

## Via Package:
Download your Package from the Latest Release.
install via your Distros Package manager like `dpkg -i`
Download the Package for your OS and architecture from the Latest Release.
Install via your Distros Package manager like `dpkg -i`

## Via Archive:
Download your Archive
Note: tab completion and manpages will be missing.
Download and Extract the Archive for your OS and architecture
Note: tab completion and manpages will need to be installed manually.

## Via Go:
go install github.com/speatzle/go-passbolt-cli
Note: this will install the binary as go-passbolt-cli also tab completion and manpages will be missing.
Note: this will install the binary as go-passbolt-cli, also tab completion and manpages will be missing.
# Getting Started
First you need to Setup basic information: the Server Address, your Private Key and your Password.
You have these options:
Expand Down

0 comments on commit 42b0dc4

Please sign in to comment.