23 lines
613 B
Ruby
23 lines
613 B
Ruby
cask 'megasync' do
|
|
version :latest
|
|
sha256 :no_check
|
|
|
|
# mega.nz is the official download host per the vendor homepage
|
|
url 'https://mega.nz/MEGAsyncSetup.dmg'
|
|
name 'MEGAsync'
|
|
homepage 'https://mega.co.nz'
|
|
license :gratis
|
|
|
|
app 'MEGAsync.app'
|
|
|
|
caveats do
|
|
<<-EOS.undent
|
|
#{token} only works if called from /Applications, so you may need to install it with
|
|
brew cask install --appdir=/Applications #{token}
|
|
|
|
Alternatively, you can create an extra link in /Applications, after installing
|
|
ln -s '#{staged_path}/MEGAsync.app' '/Applications/MEGAsync.app'
|
|
EOS
|
|
end
|
|
end
|