mitchellh / gon

Sign, notarize, and package macOS CLI tools and applications written in any language. Available as both a CLI and a Go library.
MIT License
1.47k stars 96 forks source link

having notarize declared in config uploads/notarizes zip twice #47

Open failshell opened 3 years ago

failshell commented 3 years ago

here's my config file:

source = ["./example"]
bundle_id = "com.example.app"

apple_id {
  username = "bot@example.com"
  password = "@env:AC_PASSWORD"
}

sign {
  application_identity = "Developer ID Application: Example inc."
}

zip {
  output_path = "./test.zip"
}

notarize {
  path = "./test.zip"
  bundle_id = "com.example.app"
  staple = true
}

that used to work and all of a sudden, it's uploading test.zip twice.

==> ✏️  Signing files...
    Code signing successful
==> 📦  Creating Zip archive...
    Zip archive created with signed files
==> 🍎  Notarizing...
    Files will be notarized concurrently to optimize queue wait
    Path: ./test.zip
    Path: ./test.zip
    [test.zip] Submitting file for notarization...

commenting the notarize block fixes the issue. that's kinda strange. running version 0.2.3. issue https://github.com/mitchellh/gon/issues/44 is a bit similar. but our app has 2 dynamic ldflags used that makes each binary unique.