[build scripts] restoring macOS signature after patching UUID in local update mode only on macOS

(cherry picked from commit 1771379cfbd20415799b068d569c11c32b1003a9)

IJ-CR-151551

GitOrigin-RevId: 84c412a44b50e3a718ae815eb0de0cdbf6d93457
This commit is contained in:
Roman Shevchenko
2024-12-14 20:45:23 +01:00
committed by intellij-monorepo-bot
parent c3a30e655c
commit a67918cd97

View File

@@ -1,6 +1,7 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.intellij.build.impl.macOS
import com.intellij.openapi.util.SystemInfoRt
import kotlinx.coroutines.runBlocking
import org.jetbrains.intellij.build.BuildContext
import org.jetbrains.intellij.build.io.runProcess
@@ -63,7 +64,7 @@ internal class MachOUuid(private val executable: Path, private val newUuid: UUID
context.messages.error("LC_UUID not found in $executable")
}
if (context.options.isInDevelopmentMode) {
if (context.options.isInDevelopmentMode && SystemInfoRt.isMac) {
runBlocking {
runProcess(listOf("codesign", "-s", "-", "--force", executable.toString()))
}