update archiveing

This commit is contained in:
Samuel Lorch 2021-09-10 09:28:18 +02:00
parent 35a1313dbd
commit 42b0dc41e8
4 changed files with 30 additions and 18 deletions

View file

@ -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

1
.gitignore vendored
View file

@ -6,6 +6,7 @@
!*/
man/
completion/
# Binaries for programs and plugins
*.exe

View file

@ -3,6 +3,8 @@ checksum:
name_template: 'checksums.txt'
builds:
- env: [CGO_ENABLED=0]
- flags:
- -trimpath
goos:
- linux
- windows
@ -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: |
@ -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/

View file

@ -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: