Skip to content

Commit

Permalink
Sign and notarize MacOS binary (#26)
Browse files Browse the repository at this point in the history
* Sign and notarize MacOS binary

* Cleanup
  • Loading branch information
tomodian authored Dec 8, 2024
1 parent 62dee75 commit 6b85d19
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

# Tips on Go binary:
# https://github.com/actions/setup-go/issues/27#issuecomment-549102955
Expand All @@ -18,6 +18,9 @@ jobs:
export PATH=${PATH}:`go env GOPATH`/bin
make install
make build
env:
QUILL_SIGN_P12: ${{ secrets.APPLE_P12_BASE64_ENCODED }}
QUILL_SIGN_PASSWORD: ${{ secrets.APPLE_P12_PASSWORD }}

- name: Create a release and upload assets
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
.vscode
build
coverage.txt
quill

# Only applies to top-level directories.
/coverage
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ BUILD := ./build

install:
go install github.com/mitchellh/gox@latest
curl -sSfL https://raw.githubusercontent.com/anchore/quill/main/install.sh | sh -s -- -b . v0.4.2

clean:
mkdir -p $(BUILD)
Expand Down Expand Up @@ -32,6 +33,11 @@ build-darwin: clean
gox -output="$(BUILD)/{{.Dir}}_{{.OS}}_{{.Arch}}" \
-osarch="darwin/amd64" \
-osarch="darwin/arm64"

@echo "Notarizing.."
./quill sign-and-notarize ./build/release_darwin_amd64 || true
./quill sign-and-notarize ./build/release_darwin_arm64 || true

@echo "Bundling.."
$(MAKE) bundle-nix

Expand Down

0 comments on commit 6b85d19

Please sign in to comment.