Repository navigation
Update Nucleus to 3.0.0 - #97
Merged
Merged
Conversation
Move from the 3.0.0 dev build to the 3.0.0 release. The release renames the Tao window module from decorated-window-tao to window-runtime, so the dependency follows it. It is still declared directly because the app calls TitleBar. Nucleus 3.0.0 requires the Compose plugin at 1.13, so Compose goes from 1.12.2 to 1.13.0. With the older plugin, Gradle upgrades the Compose libraries anyway, but the plugin injects a Hot Reload agent that the Tao backend does not support. Signed-off-by: Raman Gupta <rocketraman@gmail.com>
The .rpm and .deb get the full pre-release version, for example 1.6.2-alpha.7, through a package.json the build wrote before each packaging run. That worked around two Nucleus 2.5.18 behaviours: it wrote package.json only if the file did not exist yet, and it rejected any '-' in an Rpm version. Nucleus 3.0.0 fixes both. It now validates only the x.y.z part of a pre-release version, and it rewrites package.json on every run. The rewrite happens in the task action, after the build's doFirst, so the workaround's file would be overwritten with the plain x.y.z. The full version now goes through linux.packageVersion instead, and the workaround is removed. The .msi and .dmg keep the plain x.y.z from the top-level packageVersion. A packaging run produces an .rpm and a .deb versioned 1.6.2~alpha.16.dirty, which rpm sorts after 1.6.1 and before 1.6.2. Signed-off-by: Raman Gupta <rocketraman@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates Nucleus from 2.5.18 to 3.0.0. On Linux, resizing the window by dragging an edge makes the content jump and stretch: Tao renders at stale sizes during the drag. Nucleus 3.0.0 fixes that (NucleusFramework/Nucleus#444).
What changes
Nucleus 3.0.0 (
gradle/libs.versions.toml,build.gradle.kts,Main.kt)nucleusApplicationno longer takesbackend =andNucleusBackendis gone.decorated-window-taotowindow-runtime. It stays a direct dependency because the app callsTitleBar.Linux package version (
build.gradle.kts). The build wrote apackage.jsonbefore each Rpm/Deb packaging run to get the full pre-release version into the.rpmand.deb. That worked around two 2.5.18 behaviours, and 3.0.0 fixes both:-in an Rpm version. 3.0.0 validates only the x.y.z part.package.jsononly if the file didn't exist. 3.0.0 rewrites it on every run, inside the task action. That runs after the workaround'sdoFirst, so the workaround's file would be overwritten with plain x.y.z.The workaround is removed, including the step that deleted
package.jsonbefore.msi/.dmgruns, which 3.0.0's rewrite makes unnecessary. The full version goes throughlinux.packageVersion, and.msi/.dmgkeep plain x.y.z from the top-levelpackageVersion. The workaround's ownfullVersiontask input goes too: 3.0.0 declarespackageVersionas an@Inputof the packaging task, so a pre-release bump such as alpha.7 to alpha.8 still repackages.Verification
./gradlew check: 305 tests, 0 failures (counted from the result XML, after a forced re-run).packageGraalvmRpmandpackageGraalvmDebran. Both packages carry version1.6.2~alpha.16.dirty, whichrpmsorts after 1.6.1 and before 1.6.2..msiand.dmgweren't built, since that needs Windows or macOS.Reviewer notes
adoptContextClassLoaderinMain.kt: Compose 1.13 still asserts a non-null context class loader (CMP-6099), and Nucleus doesn't set one on the Tao thread on macOS.app_id(Linux: allow setting the Wayland app_id (JVM/dev runs get "java", so the shell can't match the .desktop entry) NucleusFramework/Nucleus#577) is still open.