fix(build): restore all build artifacts

This commit is contained in:
Jan De Dobbeleer 2024-11-16 14:20:08 +01:00
parent 763cdc5782
commit 3ad5be483e

View file

@ -25,22 +25,22 @@ builds:
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
goos: goos:
# - linux - linux
- windows - windows
# - darwin - darwin
# - freebsd - freebsd
goarch: goarch:
# - amd64 - amd64
- arm64 - arm64
# - arm - arm
# - "386" - "386"
# ignore: ignore:
# - goos: darwin - goos: darwin
# goarch: "386" goarch: "386"
# - goos: darwin - goos: darwin
# goarch: arm goarch: arm
# - goos: windows - goos: windows
# goarch: arm goarch: arm
hooks: hooks:
post: post:
- pwsh -c "if ('{{ .Path }}'.EndsWith('.exe')) { & '{{ .Env.SIGNTOOL }}' sign /v /debug /fd SHA256 /tr 'http://timestamp.acs.microsoft.com' /td SHA256 /dlib '{{ .Env.SIGNTOOLDLIB }}' /dmdf './metadata.json' '{{ .Path }}' }" - pwsh -c "if ('{{ .Path }}'.EndsWith('.exe')) { & '{{ .Env.SIGNTOOL }}' sign /v /debug /fd SHA256 /tr 'http://timestamp.acs.microsoft.com' /td SHA256 /dlib '{{ .Env.SIGNTOOLDLIB }}' /dmdf './metadata.json' '{{ .Path }}' }"
@ -50,11 +50,11 @@ archives:
name_template: "posh-{{ .Os }}-{{ .Arch }}" name_template: "posh-{{ .Os }}-{{ .Arch }}"
checksum: checksum:
name_template: 'checksums.txt' name_template: 'checksums.txt'
# signs: signs:
# - cmd: pwsh - cmd: pwsh
# args: args:
# - "-c" - "-c"
# - "& '{{ .Env.OPENSSL }}' pkeyutl -sign -inkey '{{ .Env.SHA_SIGNING_KEY_LOCATION }}' -out '${artifact}.sig' -rawin -in '${artifact}'" - "& '{{ .Env.OPENSSL }}' pkeyutl -sign -inkey '{{ .Env.SHA_SIGNING_KEY_LOCATION }}' -out '${artifact}.sig' -rawin -in '${artifact}'"
# artifacts: checksum artifacts: checksum
changelog: changelog:
disable: true disable: true