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
This commit is contained in:
Dmitriy.Panov
2024-12-13 14:27:47 +01:00
committed by intellij-monorepo-bot
parent 82fa4ae1e2
commit 7ed345c4ba

View File

@@ -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 {