@@ -66,30 +66,30 @@ object Distributor extends BuildExtra {
6666 object dependencies {
6767 object java {
6868 private val setOracleCookie : URLConnection => Unit = { _.setRequestProperty(" Cookie" , " oraclelicense=accept-securebackup-cookie" ) }
69- private val trimPathRegex = raw " ^\Qjre1.8.0_45 \E(?:\.jre)?/ " .r
69+ private val trimPathRegex = raw " ^\Qjre1.8.0_121 \E(?:\.jre)?/ " .r
7070 private val trimPath : String => String = { trimPathRegex.replaceFirstIn(_, " " ) }
7171
72- val win32 = Dependency (" jre.win32" , " 8u45 " , " http://download.oracle.com/otn-pub/java/jdk/8u45-b15/ jre-8u45 -windows-i586.tar.gz" )
72+ val win32 = Dependency (" jre.win32" , " 8u121 " , " http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/ jre-8u121 -windows-i586.tar.gz" )
7373 .withConnectionStep(setOracleCookie)
7474 .extractAsTarGz { trimPath }
7575 .to { _ / " distrib-dependencies" / " win32" / " jre" }
7676
77- val win64 = Dependency (" jre.win64" , " 8u45 " , " http://download.oracle.com/otn-pub/java/jdk/8u45-b15/ jre-8u45 -windows-x64.tar.gz" )
77+ val win64 = Dependency (" jre.win64" , " 8u121 " , " http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/ jre-8u121 -windows-x64.tar.gz" )
7878 .withConnectionStep(setOracleCookie)
7979 .extractAsTarGz { trimPath }
8080 .to { _ / " distrib-dependencies" / " win64" / " jre" }
8181
82- val linuxX86 = Dependency (" jre.linux-x86" , " 8u45 " , " http://download.oracle.com/otn-pub/java/jdk/8u45-b14/ jre-8u45 -linux-i586.tar.gz" )
82+ val linuxX86 = Dependency (" jre.linux-x86" , " 8u121 " , " http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/ jre-8u121 -linux-i586.tar.gz" )
8383 .withConnectionStep(setOracleCookie)
8484 .extractAsTarGz { trimPath }
8585 .to { _ / " distrib-dependencies" / " linux-x86" / " jre" }
8686
87- val linuxX64 = Dependency (" jre.linux-x64" , " 8u45 " , " http://download.oracle.com/otn-pub/java/jdk/8u45-b14/ jre-8u45 -linux-x64.tar.gz" )
87+ val linuxX64 = Dependency (" jre.linux-x64" , " 8u121 " , " http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/ jre-8u121 -linux-x64.tar.gz" )
8888 .withConnectionStep(setOracleCookie)
8989 .extractAsTarGz { trimPath }
9090 .to { _ / " distrib-dependencies" / " linux-x64" / " jre" }
9191
92- val osx = Dependency (" jre.osx" , " 8u45 " , " http://download.oracle.com/otn-pub/java/jdk/8u45-b14/ jre-8u45 -macosx-x64.tar.gz" )
92+ val osx = Dependency (" jre.osx" , " 8u121 " , " http://download.oracle.com/otn-pub/java/jdk/8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/ jre-8u121 -macosx-x64.tar.gz" )
9393 .withConnectionStep(setOracleCookie)
9494 .extractAsTarGz { trimPath }
9595 .to { _ / " distrib-dependencies" / " osx" / " jre" }
@@ -99,29 +99,30 @@ object Distributor extends BuildExtra {
9999 private val trimPathRegex = raw " ^nwjs-[^/]+/ " .r
100100 private val trimPath : String => String = { trimPathRegex.replaceFirstIn(_, " " ) }
101101
102- val win32 = Dependency (" nwjs.win32" , " v0.12.2 " , " http ://dl.nwjs.io/v0.12.2 /nwjs-v0.12.2 -win-ia32.zip" )
102+ val win32 = Dependency (" nwjs.win32" , " v0.19.5 " , " https ://dl.nwjs.io/v0.19.5 /nwjs-v0.19.5 -win-ia32.zip" )
103103 .extractAsZip { trimPath }
104104 .to { _ / " distrib-dependencies" / " win32" / " nwjs" }
105105
106- val win64 = Dependency (" nwjs.win64" , " v0.12.2 " , " http ://dl.nwjs.io/v0.12.2 /nwjs-v0.12.2 -win-x64.zip" )
106+ val win64 = Dependency (" nwjs.win64" , " v0.19.5 " , " https ://dl.nwjs.io/v0.19.5 /nwjs-v0.19.5 -win-x64.zip" )
107107 .extractAsZip { trimPath }
108108 .to { _ / " distrib-dependencies" / " win64" / " nwjs" }
109109
110- val linuxX86 = Dependency (" nwjs.linux-x86" , " v0.12.2 " , " http ://dl.nwjs.io/v0.12.2 /nwjs-v0.12.2 -linux-ia32.tar.gz" )
110+ val linuxX86 = Dependency (" nwjs.linux-x86" , " v0.19.5 " , " https ://dl.nwjs.io/v0.19.5 /nwjs-v0.19.5 -linux-ia32.tar.gz" )
111111 .extractAsTarGz { trimPath }
112112 .to { _ / " distrib-dependencies" / " linux-x86" / " nwjs" }
113113
114- val linuxX64 = Dependency (" nwjs.linux-x64" , " v0.12.2 " , " http ://dl.nwjs.io/v0.12.2 /nwjs-v0.12.2 -linux-x64.tar.gz" )
114+ val linuxX64 = Dependency (" nwjs.linux-x64" , " v0.19.5 " , " https ://dl.nwjs.io/v0.19.5 /nwjs-v0.19.5 -linux-x64.tar.gz" )
115115 .extractAsTarGz { trimPath }
116116 .to { _ / " distrib-dependencies" / " linux-x64" / " nwjs" }
117117
118- val osx = Dependency (" nwjs.osx" , " v0.12.2 " , " http ://dl.nwjs.io/v0.12.2 /nwjs-v0.12.2 -osx-x64.zip" )
118+ val osx = Dependency (" nwjs.osx" , " v0.19.5 " , " https ://dl.nwjs.io/v0.19.5 /nwjs-v0.19.5 -osx-x64.zip" )
119119 .extractAsZip { trimPath }
120120 .to { _ / " distrib-dependencies" / " osx" / " nwjs" }
121121 }
122122
123- val jetty = Dependency (" jetty" , " 9.3.3.v20150827" , " http://mirrors.xmission.com/eclipse/jetty/stable-9/dist/jetty-distribution-9.3.3.v20150827.zip" )
124- .extractAsZip { raw " ^\Qjetty-distribution-9.3.3.v20150827\E/ " .r.replaceFirstIn(_, " " ) }
123+
124+ val jetty = Dependency (" jetty" , " 9.3.15.v20161220" , " http://central.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.3.15.v20161220/jetty-distribution-9.3.15.v20161220.zip" )
125+ .extractAsZip { raw " ^\Qjetty-distribution-9.3.15.v20161220\E/ " .r.replaceFirstIn(_, " " ) }
125126 .to { _ / " distrib-dependencies" / " common" / " jetty" }
126127
127128 object tools {
@@ -262,7 +263,7 @@ object Distributor extends BuildExtra {
262263 def rewritePath (path : String ) = s " $root/Code Pulse.app " + path.stripPrefix(s " $root/nwjs.app " )
263264
264265 nwkFiles flatMap {
265- case ZipEntry (_, path, mode) if path == s " $root/nwjs.app/Contents/Resources/nw .icns " =>
266+ case ZipEntry (_, path, mode) if path == s " $root/nwjs.app/Contents/Resources/app .icns " =>
266267 // swap in our icon
267268 val icns = app / " app" / " icon.icns"
268269 Some (ZipEntry (icns, rewritePath(path), mode))
@@ -298,6 +299,8 @@ object Distributor extends BuildExtra {
298299
299300 Some (ZipEntry (customizedInfo, rewritePath(path), mode))
300301
302+ case ZipEntry (_, path, _) if path matches raw " $root/nwjs\.app/Contents/Resources/\w+\.lproj(?:/.*| $$ ) " => log.info(s " Excluding localization: $path" ); None
303+
301304 case ZipEntry (file, path, mode) if path startsWith s " $root/nwjs.app " =>
302305 Some (ZipEntry (file, rewritePath(path), mode))
303306
0 commit comments