mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
build scripts: fix generation of product-info.json for Windows distribution if JRE is not bundled
This commit is contained in:
+2
-2
@@ -103,7 +103,7 @@ class WindowsDistributionBuilder extends OsSpecificDistributionBuilder {
|
||||
}
|
||||
|
||||
if (customizer.buildZipArchive) {
|
||||
buildWinZip(jreDirectoryPaths, buildContext.productProperties.buildCrossPlatformDistribution ? ".win" : "", winDistPath)
|
||||
buildWinZip(jreDirectoryPaths.findAll {it != null}, buildContext.productProperties.buildCrossPlatformDistribution ? ".win" : "", winDistPath)
|
||||
}
|
||||
|
||||
if (arch != null && customizer.buildZipWithBundledOracleJre &&
|
||||
@@ -235,7 +235,7 @@ IDS_VM_OPTIONS=$vmOptions
|
||||
buildContext.messages.block("Build Windows ${zipNameSuffix}.zip distribution") {
|
||||
def targetPath = "$buildContext.paths.artifacts/${buildContext.productProperties.getBaseArtifactName(buildContext.applicationInfo, buildContext.buildNumber)}${zipNameSuffix}.zip"
|
||||
def zipPrefix = customizer.getRootDirectoryName(buildContext.applicationInfo, buildContext.buildNumber)
|
||||
def dirs = [buildContext.paths.distAll, winDistPath] + jreDirectoryPaths.findAll {it != null}
|
||||
def dirs = [buildContext.paths.distAll, winDistPath] + jreDirectoryPaths
|
||||
buildContext.messages.progress("Building Windows ${zipNameSuffix}.zip archive")
|
||||
def productJsonDir = new File(buildContext.paths.temp, "win.dist.product-info.json.zip$zipNameSuffix").absolutePath
|
||||
generateProductJson(productJsonDir, !jreDirectoryPaths.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user