IDEA-300773 currently sit cannot be signed on Windows

GitOrigin-RevId: 1f55d427e86db8d9a3be296d137176eb6e790ad3
This commit is contained in:
Dmitriy.Panov
2022-11-09 10:52:44 +00:00
committed by intellij-monorepo-bot
parent 2c2e894e10
commit 3575a0302b
@@ -153,11 +153,16 @@ private suspend fun buildLocally(sitFile: Path,
customizer: MacDistributionCustomizer,
context: BuildContext) {
val tempDir = context.paths.tempDir.resolve(sitFile.fileName.toString().replace(".sit", ""))
spanBuilder("bundle JBR and sign sit locally")
.setAttribute("sitFile", sitFile.toString()).useWithScope {
Files.createDirectories(tempDir)
signSitLocally(sitFile, tempDir, sign, notarize, customizer, context)
}
if (SystemInfoRt.isWindows) {
Span.current().addEvent("Currently sit cannot be signed on Windows")
}
else {
spanBuilder("bundle JBR and sign sit locally")
.setAttribute("sitFile", sitFile.toString()).useWithScope {
Files.createDirectories(tempDir)
signSitLocally(sitFile, tempDir, sign, notarize, customizer, context)
}
}
if (context.publishSitArchive) {
context.notifyArtifactBuilt(sitFile)
}