@@ -22,7 +22,9 @@ param (
2222 [String ]
2323 $EspressifIdeVersion = ' 2.4.2' ,
2424 [String ]
25- $JdkVersion = " jdk11.0.15_9"
25+ $JdkVersion = " jdk11.0.15_9" ,
26+ [String ]
27+ $JdkArtifactVersion = " 11.0.15.9.1"
2628)
2729
2830# Stop on error
@@ -38,6 +40,7 @@ $ErrorView = 'NormalView'
3840" -IdfEnvVersion = ${IdfEnvVersion} "
3941" -InstallerType = ${InstallerType} "
4042" -JdkVersion = ${JdkVersion} "
43+ " -JdkArtifactVersion = ${JdkArtifactVersion} "
4144" -OfflineBranch = ${OfflineBranch} "
4245" -Python = ${Python} "
4346" -SignInstaller = ${SignInstaller} "
@@ -173,7 +176,7 @@ function PrepareIdfEclipse {
173176 PrepareIdfPackage - BasePath build\$InstallerType \tools\amazon- corretto- 11 - x64- windows- jdk\ `
174177 - FilePath ${JdkVersion} \bin\java.exe `
175178 - DistZip amazon- corretto- 11 - x64- windows- jdk.zip `
176- - DownloadUrl https:// corretto.aws/ downloads/ latest / amazon- corretto- 11 - x64 - windows- jdk.zip
179+ - DownloadUrl https:// corretto.aws/ downloads/ resources / ${JdkArtifactVersion} / amazon- corretto- ${JdkArtifactVersion} - windows- x64 - jdk.zip
177180
178181 PrepareIdfPackage - BasePath build\$InstallerType \tools\espressif- ide\${EspressifIdeVersion} `
179182 - FilePath espressif-ide.exe `
@@ -358,6 +361,7 @@ if (('offline' -eq $InstallerType) -or ('espressif-ide' -eq $InstallerType)){
358361 $IsccParameters += ' /DVERSION=' + $EspressifIdeVersion
359362 $IsccParameters += ' /DESPRESSIFIDEVERSION=' + $EspressifIdeVersion
360363 $IsccParameters += ' /DJDKVERSION=' + $JdkVersion
364+ $IsccParameters += ' /DJDKARTIFACTVERSION=' + $JdkArtifactVersion
361365 PrepareIdfEclipse
362366 } else {
363367 $IsccParameters += ' /DVERSION=' + $OfflineBranch.Replace (' v' , ' ' )
@@ -368,6 +372,8 @@ if (('offline' -eq $InstallerType) -or ('espressif-ide' -eq $InstallerType)){
368372 PrepareIdfPythonWheels
369373} elseif (' online' -eq $InstallerType ) {
370374 DownloadIdfVersions
375+ $IsccParameters += ' /DJDKVERSION=' + $JdkVersion
376+ $IsccParameters += ' /DJDKARTIFACTVERSION=' + $JdkArtifactVersion
371377 $IsccParameters += ' /DESPRESSIFIDE=yes'
372378 $IsccParameters += ' /DOFFLINE=no'
373379} else {
0 commit comments