Skip to content

Commit

Permalink
try another approach...
Browse files Browse the repository at this point in the history
  • Loading branch information
c-robinson committed Jan 24, 2024
1 parent 5dcb8c0 commit faefd0c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ jobs:
APPLE_DEVELOPER_ID: ${{ vars.APPLE_DEVELOPER_ID }}
APPLE_SIGNING_PASSWORD: ${{ secrets.APPLE_SIGNING_PASSWORD }}

- name: Notarize Darwin binaries
env:
APPLE_DEVELOPER_ID: ${{ vars.APPLE_DEVELOPER_ID }}
APPLE_APPLICATION_CERT: ${{ secrets.APPLE_APPLICATION_CERT }}
APPLE_APPLICATION_CERT_PASSWORD: ${{ secrets.APPLE_APPLICATION_CERT_PASSWORD }}
APPLE_SIGNING_PASSWORD: ${{ secrets.APPLE_SIGNING_PASSWORD }}
run: |
- uses: actions/upload-artifact@v3
with:
name: macos
Expand Down
42 changes: 33 additions & 9 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ builds:
ldflags:
- "-w -X main.version={{ .Version }}"
hooks:
#post: |
# sh -c '
# codesign --timestamp \
# --options=runtime \
# -s "${APPLE_DEVELOPER_ID}" \
# -v \
# dist/ipfool-osx_darwin_${ARCH}/ipfool
# '
post: |
sh -c build/buildosx.sh
sh -c '
codesign --timestamp \
--options=runtime \
-s "${APPLE_DEVELOPER_ID}" \
-v \
dist/ipfool-osx_darwin_${ARCH}/ipfool
'
#post: |
# sh -c build/buildosx.sh

#Configuration for building packages for rpm and deb package managers
nfpms:
Expand Down Expand Up @@ -86,6 +86,30 @@ archives:
- goos: windows
format: zip

signs:
- id: gatekeeper
ids:
- ipfool-osx
signature: "${artifact}"
env:
- >-
{{- if eq .Arch "amd64"}}ARCH=amd64_v1{{- end }}
{{- if eq .Arch "arm64"}}ARCH=arm64{{- end }}
cmd: xcrun
args:
[
"notarytool",
"submit",
"./dist/{{ .ProjectName }}_{{ .Version }}_darwin_{{ .Arch }}.zip",
"--apple-id",
"chadr@zang.com",
"--password",
"{{ .Env.APPLE_SIGNING_PASSWORD }}",
"--team-id",
"{{ .Env.APPLE_DEVELOPER_ID }}",
"--progress",
"--wait",
]
changelog:
sort: asc
filters:
Expand Down

0 comments on commit faefd0c

Please sign in to comment.