Skip to content

Commit

Permalink
🧱 Fix signing third-party-based linters for the latest goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Nov 21, 2024
1 parent c82bf2b commit e2cda30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cdnet/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ builds:
- -s -w -X main.version={{ .Env.VERSION }} -X main.buildDateStr={{ .Date }}
hooks:
post:
- sh -c "set -e; if [ '{{ .Env.SIGN }}' = 'true' -a '{{ .Os }}' = 'windows' -a '{{ .Arch }}' = 'amd64' ]; then codesign -signed-files-dir ./dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v1/ './dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v1/qodana-cdnet.exe' ; fi"
- sh -c "set -e; if [ '{{ .Env.SIGN }}' = 'true' -a '{{ .Os }}' = 'windows' -a '{{ .Arch }}' = 'arm64' ]; then codesign -signed-files-dir ./dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}/ './dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}/qodana-cdnet.exe' ; fi"
- sh -c "set -e; if [ '{{ .Env.SIGN }}' = 'true' -a '{{ .Os }}' = 'darwin' -a '{{ .Arch }}' = 'amd64' ]; then codesign -denoted-content-type=application/x-mac-app-bin -signed-files-dir ./dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v1/ './dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v1/qodana-cdnet' ; fi"
- sh -c "set -e; if [ '{{ .Env.SIGN }}' = 'true' -a '{{ .Os }}' = 'darwin' -a '{{ .Arch }}' = 'arm64' ]; then codesign -denoted-content-type=application/x-mac-app-bin -signed-files-dir ./dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}/ './dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}/qodana-cdnet' ; fi"
- sh -c "set -e; if [ '{{ .Env.SIGN }}' = 'true' -a '{{ .Os }}' = 'windows' -a '{{ .Arch }}' = 'amd64' ]; then codesign -signed-files-dir ./dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v1/ './dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v1/qodana-clang.exe' ; fi"
- sh -c "set -e; if [ '{{ .Env.SIGN }}' = 'true' -a '{{ .Os }}' = 'windows' -a '{{ .Arch }}' = 'arm64' ]; then codesign -signed-files-dir ./dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v8.0/ './dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}/qodana-clang.exe' ; fi"
- sh -c "set -e; if [ '{{ .Env.SIGN }}' = 'true' -a '{{ .Os }}' = 'darwin' -a '{{ .Arch }}' = 'amd64' ]; then codesign -denoted-content-type=application/x-mac-app-bin -signed-files-dir ./dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v1/ './dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v1/qodana-clang' ; fi"
- sh -c "set -e; if [ '{{ .Env.SIGN }}' = 'true' -a '{{ .Os }}' = 'darwin' -a '{{ .Arch }}' = 'arm64' ]; then codesign -denoted-content-type=application/x-mac-app-bin -signed-files-dir ./dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v8.0/ './dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}/qodana-clang' ; fi"
snapshot:
name_template: "{{ incpatch .Version }}-next"
archives:
Expand Down
2 changes: 1 addition & 1 deletion clang
Submodule clang updated from 2b1bc5 to da6767

0 comments on commit e2cda30

Please sign in to comment.