Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Casks/p/plamo-translate.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
cask "plamo-translate" do
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain the reasoning behind using plamo-translate instead of plamo-translation?
I'm not sure which is more correct.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even the official sources seem unsure which is the correct name; the release article mentions both ‘PLaMo Translate’ and ‘PLaMo Translation’.

Would it be clearer and better to go by the app’s bundle ID?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for reference, it appears that starting with version 0.4.3, the URL has changed from /desktop/desktop-#{version}.dmg to /desktop/plamo-translate-desktop-#{version}.dmg.

version "0.4.3"
sha256 "95fd6b154924096b81ed3ce182c537cee1b9d52cdab07d9a39388fe6dc78860d"

url "https://storage.googleapis.com/plamo-translate-web-downloads-prd/desktop/plamo-translate-desktop-#{version}.dmg",
verified: "storage.googleapis.com/plamo-translate-web-downloads-prd/"
name "PLaMo Translate"
name "PLaMo翻訳"
desc "Translator focused on Japanese"
homepage "https://translate.preferredai.jp/"

livecheck do
url "https://storage.googleapis.com/plamo-translate-web-downloads-prd/desktop/latest-mac.yml"
strategy :electron_builder
end

depends_on macos: ">= :monterey"
depends_on arch: :arm64

app "PLaMo翻訳.app"

uninstall quit: "com.pfn.plamo-translation",
login_item: "PLaMo翻訳"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.pfn.plamo-translation.sfl*",
"~/Library/Application Support/PLaMo翻訳",
"~/Library/Logs/PLaMo翻訳",
"~/Library/Preferences/com.pfn.plamo-translation.plist",
]
end
Loading