Update netbeans to 11.1 (#67003)

* Update netbeans.rb

* Update netbeans.rb

* Update netbeans.rb

* Update netbeans.rb
This commit is contained in:
CoreCode 2019-08-08 13:14:44 +02:00 committed by Vítor Galvão
parent 6b13322868
commit 6a261a7b4f
1 changed files with 6 additions and 25 deletions

View File

@ -1,32 +1,13 @@
cask 'netbeans' do
version '8.2'
sha256 'ddcf37e91d960cca6b6a37c95eabf2c6f15330ed708bfd79be796de00da20e5e'
version '11.1'
sha256 '081d564e6b0c3b7aabd906a699de42fe5fff73b1e5e8ed3977afa0010d0b2f33'
url "https://download.netbeans.org/netbeans/#{version}/final/bundles/netbeans-#{version}-macosx.dmg"
url "https://www-eu.apache.org/dist/netbeans/netbeans/#{version}/Apache-NetBeans-#{version}-bin-macosx.dmg"
appcast 'https://www-eu.apache.org/dist/netbeans/netbeans/'
name 'NetBeans IDE'
homepage 'https://netbeans.org/'
homepage 'https://netbeans.apache.org/download/index.html'
pkg "NetBeans #{version}.pkg"
# Theoretically this uninstall could conflict with a separate GlassFish
# installation.
#
# In practice, it appears that the normal GlassFish installation process does
# not use the macOS installer and so isn't in the pkgutil receipts database.
#
# https://glassfish.java.net/docs/4.0/installation-guide.pdf
#
# Arguably if the GlassFish installation by NetBeans inside its own target
# directory were to conflict with a standard GlassFish installation in the
# receipts database that would be a bug upstream with NetBeans not prefixing
# its GlassFish package with "org.netbeans."
#
# If this ever becomes an issue, pkgutil: 'glassfish.*' could be moved to a
# separate "zap" stanza.
#
# The NetBeans installer does some postflight unpacking of paths installed by
# the macOS installer, so it's insufficient to just delete the paths exposed
# by pkgutil, hence the additional ":delete" option below.
pkg "Apache NetBeans #{version}.pkg"
uninstall pkgutil: 'org.netbeans.ide.*|glassfish.*',
delete: '/Applications/NetBeans'