Closed Mrered closed 1 year ago
这里有一位【热心网友】ivaquero (_ivaquero_) (github.com) 可以辅助制作 Homebrew 需要的 ruby 脚本!
希望支持Pot · Issue #13 · ivaquero/homebrew-chinese (github.com)
我不是Mac用户,也没有用过Homebrew,期待PR😃
已经实现:
homebrew-chinese/pot-desktop.rb at main · ivaquero/homebrew-chinese · GitHub
ivaquero (_ivaquero_) (github.com)手太快了,我刚提了issue自己搞了个准备给他pr,他就做出来关issue了🥳。
安装方法:
brew tap ivaquero/chinese
brew update
brew install --cask pot-desktop
这个仓库会自动更新吗,还是说得有人来维护。
作者会维护,维护方法很简单,将下面 version
sha256
改一下就好了。
cask "pot-desktop" do
arch arm: "aarch64", intel: "x64"
version "0.3.2"
sha256 arm: "3e8e725d58ed1a3876ee20c943ff0cd49e1a38ee60a344127fae8e92220d71fa",
intel: "17eb4113ca7293b12880afb30de4fd6c9801282f66c7ba885afb7e8f02167892"
url "https://github.com/pot-app/pot-desktop/releases/download/#{version}/pot_#{version}_#{arch}.dmg"
name "pot"
desc "A cross-platform translation software"
homepage "https://github.com/pot-app/pot-desktop"
livecheck do
url :url
strategy :github_latest
end
app "pot.app"
zap trash: [
"~/Library/Application Support/cn.pylogmon.pot/config.toml",
"~/Library/Caches/cn.pylogmon.pot",
"~/Library/Saved Application State/cn.pylogmon.pot.savedState",
]
end
需求描述
如题,希望官方增加Homebrew安装支持!
应用场景
macOS上最舒服的安装方式当然是:
参考资料
参见官方文档 Cask Cookbook — Homebrew Documentation