Skip to content

Fix packaging on Linux - #5686

Merged
Alexander Maryanovsky (m-sasha) merged 4 commits into
masterfrom
m-sasha/fix-linux-packaging
Aug 4, 2026
Merged

Fix packaging on Linux#5686
Alexander Maryanovsky (m-sasha) merged 4 commits into
masterfrom
m-sasha/fix-linux-packaging

Conversation

@m-sasha

@m-sasha Alexander Maryanovsky (m-sasha) commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Pass --app-image and --icon correctly.

Before #5644 the packaging for Linux was done in one step. Now the packaging is always done in two steps: first create an "app image" and then from that an installer.

The packaging task was not set up correctly for this (on Linux).

Fixes https://youtrack.jetbrains.com/issue/CMP-10546

Testing

Tested manually and added a check in a unit test

Release Notes

N/A

Comment on lines +674 to +684
with(aotProject(AotMode.None, javaVendor = JvmVendor.KnownJvmVendor.AMAZON, javaVersion = 17)) {
// fun testRunTask(runTask: String) {
// gradleFailure(runTask).checks {
// check.logContains("AotMode 'AppCdsAuto' is not supported on JDK earlier than 19; current is 17")
// }
// }
gradle(":packageReleaseDmg")

// testRunTask(":runReleaseDistributable")
}
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you explain this?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally I'd recommend to avoid such heavy tests. Instead we need to check a task configuration only

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remnants from ancient times; removed.

@m-sasha Alexander Maryanovsky (m-sasha) Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally I'd recommend to avoid such heavy tests. Instead we need to check a task configuration only

It tests failure, so should pass (fail) quickly.

@m-sasha
Alexander Maryanovsky (m-sasha) merged commit a142a75 into master Aug 4, 2026
23 of 25 checks passed
@m-sasha
Alexander Maryanovsky (m-sasha) deleted the m-sasha/fix-linux-packaging branch August 4, 2026 20:33
@MatkovIvan

Copy link
Copy Markdown
Contributor

Fixes - Desktop

  • Fixed native app packaging on Linux

Alexander Maryanovsky (@m-sasha) was it broken in 1.12?

@m-sasha

Copy link
Copy Markdown
Contributor Author

Alexander Maryanovsky (@m-sasha) was it broken in 1.12?

If I understand correctly, 1.12.10-alpha01+dev4534 is not actually 1.12

@MatkovIvan

Copy link
Copy Markdown
Contributor

Alexander Maryanovsky (@m-sasha) it seems not a part of any release, so we do not need to write release notes in this case. Could you please remove it to avoid user's confusion?

@m-sasha

Copy link
Copy Markdown
Contributor Author

Alexander Maryanovsky (Alexander Maryanovsky (@m-sasha)) it seems not a part of any release, so we do not need to write release notes in this case. Could you please remove it to avoid user's confusion?

I marked it as (prerelease fix); is that enough?

@MatkovIvan

Copy link
Copy Markdown
Contributor

(prerelease fix) is only for cases where we're fixing something that was released as alpha/beta.
For this case it wasn't released at all (we do not count dev builds here), so it should be just N/A here

@m-sasha

Copy link
Copy Markdown
Contributor Author

Ok, removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants