Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

[Tracking] Compiled for darwin/arm64 #40

Open
skyzyx opened this issue Feb 19, 2021 · 4 comments
Open

[Tracking] Compiled for darwin/arm64 #40

skyzyx opened this issue Feb 19, 2021 · 4 comments

Comments

@skyzyx
Copy link
Contributor

skyzyx commented Feb 19, 2021

Important Factoids

Apple M1 chip is here. Porting work is occurring for everyone. Opening a tracking ticket to provide public visibility on the work.

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

@juliangruber
Copy link

@skyzyx
Copy link
Contributor Author

skyzyx commented Sep 26, 2022

I ended up just switching to Apple’s notarytool and adding that to my GoReleaser pipeline.

https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow

@juliangruber
Copy link

juliangruber commented Sep 27, 2022

That's good to know! Do you have this set up in an open source repository by chance, or could share the relevant bits?

@skyzyx
Copy link
Contributor Author

skyzyx commented Sep 28, 2022

No, but in .goreleaser.yml, here's how I sign Windows/Linux with GPG and notarize the Mac binary.

signs:
  - id: gpg
    ids:
      - linux-archive
      - windows-archive
    signature: "${artifact}.sig"
    cmd: gpg2
    args:
      [
        "-u",
        "{{ .Var.GPGKeyID }}",
        "--output",
        "${signature}",
        "--detach-sign",
        "${artifact}",
      ]
    artifacts: all

  - id: gatekeeper
    ids:
      - macos-archive
    signature: "${artifact}"
    cmd: xcrun
    args:
      [
        "notarytool",
        "submit",
        "./dist/{{ .ProjectName }}-{{ .Version }}.darwin.universal.zip",
        "--apple-id",
        "{{ .Env.AC_APPLE_ID }}",
        "--password",
        "{{ .Env.AC_PASSWORD }}",
        "--team-id",
        "{{ .Env.AC_TEAM_ID }}",
        "--progress",
        "--wait",
      ]
    artifacts: all

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants