How to Publish GUI Software on Homebrew (cask)

Tried for an hour, giving up for now

cask "goldendict-ng" do
	version "24.09.0-Qt6.6.3"

  url "https://github.com/xiaoyifang/goldendict-ng/releases/latest"
  name "goldendict-ng"
	desc "The Next Generation GoldenDict"
	homepage "https://github.com/xiaoyifang/goldendict-ng"

  depends_on macos: "qt"

	app "goldendict-ng.app"
  binary "#{appdir}/goldendict-ng.app/Contents/MacOS/goldendict-ng"

	zap trash: [
		"~/.goldendict-ng",
		"~/Library/Application Support/goldendict-ng",
		"~/Library/Preferences/com.goldendict-ng.plist",
		"~/Library/Saved Application State/com.goldendict-ng.savedState",
	  ]

end

References

Submitted the PR, I’m exhausted.
Gonna eat McDonald’s tonight.

If the ARM version of the software is not signed, it cannot be uploaded. The project author currently does not intend to sign it

https://developer.apple.com/cn/documentation/xcode/notarizing_macos_software_before_distribution/