From 7ed345c4baa23408f60e6d36ae560da8c7b5df9e Mon Sep 17 00:00:00 2001 From: "Dmitriy.Panov" Date: Fri, 13 Dec 2024 14:27:47 +0100 Subject: [PATCH] IJPL-172978 launcher UUID shouldn't be patched in the development mode because it won't be re-signed and won't start (cherry picked from commit e78dea4690e833af14cf973c87e70c29b9b9c846) IJ-CR-151551 GitOrigin-RevId: 6d1d18d08cccf2380292c73e8f4a61d8dd0bb4a2 --- .../org/jetbrains/intellij/build/impl/macOS/MachOUuid.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/macOS/MachOUuid.kt b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/macOS/MachOUuid.kt index 3adf0c430fe1..59d301fa04bd 100644 --- a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/macOS/MachOUuid.kt +++ b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/macOS/MachOUuid.kt @@ -49,9 +49,11 @@ internal class MachOUuid(private val executable: Path, private val newUuid: UUID buffer.putLong(newUuid.mostSignificantBits) buffer.putLong(newUuid.leastSignificantBits) buffer.flip() - channel.position(channel.position() - 16) - channel.write(buffer) - context.messages.info("new UUID of $executable: $newUuid") + if (!context.options.isInDevelopmentMode) { + channel.position(channel.position() - 16) + channel.write(buffer) + context.messages.info("new UUID of $executable: $newUuid") + } return } else {