Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
add scoop section in goreleaser config, remove old scoop scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Mar 20, 2022
1 parent beb9864 commit 262ce55
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 121 deletions.
28 changes: 21 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
release:
prerelease: auto
draft: true
name_template: "Secman v{{ .Version }}"
name_template: "Secman {{ .Tag }}"

before:
hooks:
Expand All @@ -17,7 +17,7 @@ builds:
binary: bin/secman
main: ./
ldflags:
- -X main.version=v{{ .Version }}
- -X main.version={{ .Tag }}
- -X main.buildDate={{ .Env.BuildDate }}

id: macos
Expand All @@ -43,7 +43,7 @@ archives:
- id: nix
builds: [ macos, linux, freebsd ]
<<: &archive_defaults
name_template: "{{ .ProjectName }}_{{ .Os }}_v{{ .Version }}_{{ .Arch }}"
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Tag }}_{{ .Arch }}"

wrap_in_directory: "true"
replacements:
Expand All @@ -53,7 +53,7 @@ archives:
- LICENSE

- id: windows
builds: [ windows ]
builds: [windows]
<<: *archive_defaults
wrap_in_directory: "false"
format: zip
Expand All @@ -65,7 +65,7 @@ nfpms:
maintainer: secman
homepage: https://secman.dev
bindir: /usr
file_name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Arch }}"
file_name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Arch }}"
description: "👊 Human-friendly and amazing TUI secrets manager"
formats:
- apk
Expand All @@ -79,11 +79,25 @@ brews:
name: homebrew-tap
homepage: "https://secman.dev"
description: "👊 Human-friendly and amazing TUI secrets manager"
license: "MIT"
license: MIT
post_install: system "npm install --global @secman/scc"

scoop:
url_template: "https://github.com/scmn-dev/secman/releases/download/{{ .Tag }}/{{ .ArtifactName }}"

bucket:
owner: scmn-dev
name: scoop

homepage: "https://secman.dev"
description: "👊 Human-friendly and amazing TUI secrets manager"

license: MIT

post_install: ["npm install --global @secman/scc"]

checksum:
name_template: "checksums.txt"

snapshot:
name_template: "{{ .Tag }}-next"
name_template: "{{ .Version }}-next"
4 changes: 0 additions & 4 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,3 @@ tasks:
- task: build-core
- task: link-core
- sudo mv ./secman "{{ .SECMAN_UNIX_PATH }}"

scoop:
cmds:
- node ./scripts/scoop/scoop-sm.js
18 changes: 0 additions & 18 deletions scripts/scoop/package.json

This file was deleted.

74 changes: 0 additions & 74 deletions scripts/scoop/scoop-sm.js

This file was deleted.

18 changes: 0 additions & 18 deletions scripts/scoop/templates/secman.json

This file was deleted.

0 comments on commit 262ce55

Please sign in to comment.