如何在Homebrew上发布GUI软件(cask

折腾了一小时,先放弃

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

参考

提交pr了,累死我了
今晚要吃麦

如果arm版软件没有签名是无法上传的,项目作者暂时没有打算签名

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