-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homebrew cask for macOS, help wanted #1141
Comments
Someone already did one https://github.com/ivaquero/homebrew-chinese/blob/93c5a32c51b31e6b33b171151b6ac122883b09b5/Casks/goldendict-ng.rb AND https://github.com/hantang/homebrew-tribe/blob/main/Casks/goldendict-ng.rb But it cannot be submitted to homebrew-cask repo because it does not meet homebrew's regulations. https://docs.brew.sh/Adding-Software-to-Homebrew The hardcoded version has to be replaced with something automatic checks https://docs.brew.sh/Brew-Livecheck Also, as of right now, the app name inside the .dmg is |
It would be better if you can create an official repo named |
I created one intended to be upstream to offical homebrew cask. https://github.com/shenlebantongying/homebrew-cask/blob/goldendict-ng/Casks/g/goldendict-ng.rb Current problem: Homebrew for Arm requires proper codesign & notarize 😅 Cannot pass the check: > brew audit --cask --new goldendict-ng
==> Downloading https://github.com/xiaoyifang/goldendict-ng/releases/download/v24.05.05-LiXia.ecd1138c/GoldenDict-24.05.05-
Already downloaded: /Users/slbtty/Library/Caches/Homebrew/downloads/baf4264ab51bd174e9fd2091051c062ca89cb1e33bcb6c4e447ed9e149b756d8--GoldenDict-24.05.05-Qt6.7.0-arm64.dmg
==> Downloading and extracting artifacts
==> Downloading https://github.com/xiaoyifang/goldendict-ng/releases/download/v24.05.05-LiXia.ecd1138c/GoldenDict-24.05.05-
Already downloaded: /Users/slbtty/Library/Caches/Homebrew/downloads/baf4264ab51bd174e9fd2091051c062ca89cb1e33bcb6c4e447ed9e149b756d8--GoldenDict-24.05.05-Qt6.7.0-arm64.dmg
audit for goldendict-ng: failed
- Signature verification failed:
/private/tmp/cask-audit20240512-22279-nd5lm/GoldenDict-ng.app: rejected
macOS on ARM requires software to be signed.
Please contact the upstream developer to let them know they should sign and notarize their software.
goldendict-ng
* line 7, col 4: Signature verification failed:
/private/tmp/cask-audit20240512-22279-nd5lm/GoldenDict-ng.app: rejected
macOS on ARM requires software to be signed.
Please contact the upstream developer to let them know they should sign and notarize their software.
Error: 1 problem in 1 cask detected.
|
Submitting to Homebrew cask need to pay Apple $99 USD per year for notarization. Also need a lot of work to set up CI. Related code for creating a Cask. cask "goldendict-ng" do
version "24.05.05"
sha256 arm: "f6ab0bd998f9eca2e141b64be2c804067e546810d813b7bf3972f4ab593258db",
intel: "3869f3b6311456aa0904f64f75e68a15fa28f87716bad4cc4a29676b45c6d602"
on_arm do
url "https://github.com/xiaoyifang/goldendict-ng/releases/download/v#{version}-LiXia.ecd1138c/GoldenDict-#{version}-Qt6.7.0-arm64.dmg",
verified: "https://github.com/xiaoyifang/goldendict-ng/"
end
on_intel do
url "https://github.com/xiaoyifang/goldendict-ng/releases/download/v#{version}-LiXia.ecd1138c/GoldenDict-#{version}-Qt6.7.0-x86_64.dmg",
verified: "https://github.com/xiaoyifang/goldendict-ng/"
end
name "Goldendict-ng"
desc "Feature-rich dictionary lookup program"
homepage "https://xiaoyifang.github.io/goldendict-ng/"
livecheck do
url "https://github.com/xiaoyifang/goldendict-ng"
regex(/^v(\d\d.\d\d.\d\d)-.*/i)
end
depends_on macos: ">= :monterey"
app "GoldenDict-ng.app"
zap trash: [
"~/.goldendict",
"~/Library/Caches/GoldenDict-ng",
"~/Library/Preferences/org.xiaoyifang.plist",
"~/Library/Saved Application State/org.xiaoyifang.savedState",
]
end |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: