5 url "https://mega.nz/MEGAcmdSetup.dmg"
7 desc "Command-line access to MEGA services"
8 homepage "https://mega.nz/cmd"
10 # The upstream website doesn't appear to provide version information. We check
11 # GitHub tags as a best guess of when a new version is released (upstream
12 # doesn't use GitHub releases).
14 url "https://github.com/meganz/MEGAcmd"
15 regex(/^v?(\d+(?:\.\d+)+)[._-]macOS$/i)
19 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/MEGAcmdShell", target: "megacmd"
20 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-attr"
21 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-backup"
22 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-cancel"
23 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-cat"
24 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-cd"
25 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-cmd"
26 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-confirm"
27 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-confirmcancel"
28 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-cp"
29 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-debug"
30 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-deleteversions"
31 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-df"
32 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-du"
33 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-errorcode"
34 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-exclude"
35 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-exec"
36 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-export"
37 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-find"
38 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-ftp"
39 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-get"
40 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-graphics"
41 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-help"
42 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-https"
43 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-import"
44 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-invite"
45 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-ipc"
46 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-killsession"
47 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-lcd"
48 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-log"
49 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-login"
50 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-logout"
51 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-lpwd"
52 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-ls"
53 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-mediainfo"
54 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-mkdir"
55 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-mount"
56 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-mv"
57 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-passwd"
58 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-permissions"
59 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-preview"
60 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-put"
61 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-pwd"
62 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-quit"
63 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-reload"
64 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-rm"
65 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-session"
66 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-share"
67 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-showpcr"
68 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-signup"
69 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-speedlimit"
70 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-sync"
71 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-thumbnail"
72 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-transfers"
73 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-tree"
74 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-userattr"
75 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-users"
76 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-version"
77 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-webdav"
78 binary "#{appdir}/MEGAcmd.app/Contents/MacOS/mega-whoami"
80 zap trash: "~/.megaCmd"
83 #{token} only works if called from /Applications, so you may need to install
86 brew install --cask --appdir=/Applications #{token}