Skip to content

Commit

Permalink
nextcloud: add zap stanza (Homebrew#90697)
Browse files Browse the repository at this point in the history
  • Loading branch information
jivanpal authored Oct 12, 2020
1 parent adb9ba2 commit 4b47577
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Casks/nextcloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
if MacOS.version <= :el_capitan
version "2.6.5.20200710-legacy"
sha256 "4c67e50361dd5596fb884002d1ed907fe109d607fba2cabe07e505addd164519"

# github.com/nextcloud/desktop/ was verified as official when first introduced to the cask
url "https://github.com/nextcloud/desktop/releases/download/v#{version.major_minor_patch}/Nextcloud-#{version}.pkg"
else
version "3.0.2"
sha256 "69103a648bf59220a1dd09030ea2e7ba39fdf910ac456769701eadaea27682fb"

# github.com/nextcloud/desktop/ was verified as official when first introduced to the cask
url "https://github.com/nextcloud/desktop/releases/download/v#{version}/Nextcloud-#{version}.pkg"
end

url "https://download.nextcloud.com/desktop/releases/Mac/Installer/Nextcloud-#{version}.pkg"
appcast "https://download.nextcloud.com/desktop/releases/Mac/Installer/"
appcast "https://github.com/nextcloud/desktop/releases.atom"
name "Nextcloud"
desc "Desktop sync client for Nextcloud software products"
homepage "https://nextcloud.com/"
Expand All @@ -19,4 +24,14 @@
binary "#{appdir}/nextcloud.app/Contents/MacOS/nextcloudcmd"

uninstall pkgutil: "com.nextcloud.desktopclient"

zap trash: [
"~/Library/Application Scripts/com.nextcloud.desktopclient.FinderSyncExt",
"~/Library/Application Support/Nextcloud",
"~/Library/Caches/Nextcloud",
"~/Library/Containers/com.nextcloud.desktopclient.FinderSyncExt",
"~/Library/Group Containers/com.nextcloud.desktopclient",
"~/Library/Preferences/com.nextcloud.desktopclient.plist",
"~/Library/Preferences/Nextcloud",
]
end

0 comments on commit 4b47577

Please sign in to comment.