Skip to content

Commit

Permalink
Merge pull request #176888 from fschlegelone/getoutline
Browse files Browse the repository at this point in the history
getoutline 1.3.1 (new cask)
  • Loading branch information
krehel committed Jun 19, 2024
2 parents 74ace00 + 7a19e43 commit a6aa921
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Casks/g/getoutline.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
cask "getoutline" do
arch arm: "arm64", intel: "x64"

version "1.3.1,240227x80f4vacd"
sha256 arm: "5178207301ee32ff0540dba762af9a8c64d61c42bbc64bdfbee4f058e9953ad4",
intel: "8409afc5d0433084d9aacbd6decb3bb387c343a75aa37acdf5ba29d145a229f6"

url "https://download.todesktop.com/2211128hgkdcltv/Outline%20#{version.csv.first}%20-%20Build%20#{version.csv.second}-#{arch}.dmg",
verified: "download.todesktop.com/2211128hgkdcltv/"
name "Outline"
desc "Knowledge management tool"
homepage "https://getoutline.com/"

livecheck do
url "https://download.todesktop.com/2211128hgkdcltv/latest-mac.yml"
regex(/Build[ ._-]([^-]+)[._-]/i)
strategy :electron_builder do |item, regex|
build = item["files"].first["url"][regex, 1]
next if build.blank?

"#{item["version"]},#{build}"
end
end

depends_on macos: ">= :catalina"

app "Outline.app"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.generaloutline.outline.sfl*",
"~/Library/Application Support/Outline",
"~/Library/Logs/Outline",
"~/Library/Preferences/com.generaloutline.outline.plist",
"~/Library/Saved Application State/com.generaloutline.outline.savedState",
]
end

0 comments on commit a6aa921

Please sign in to comment.