8 Commits

  • v1.2.1, bugfixes
    Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
  • Massive refactor and cleanup
    Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
    
    Massive refactor and cleanup #2
    
    Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
    
    Fix iOS build
    
    Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
    
    Final refactoring
    
    Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
  • ci(release): workflow_dispatch only so caches survive across releases
    - drop the tag-push trigger: caches saved by tag-scoped runs are visible
      to that tag only (GitHub docs, 'Restrictions for accessing a cache'),
      so every tag build started cold and warmed nobody
    - dispatch instead, preferably from the default branch; the tag does not
      need to exist, publish creates it at the built commit; warn when
      dispatching from a non-default branch
    - merge check-build into resolve-version (one runner + one checkout
      instead of two)
    - merge record-build into publish: save the build-success marker at the
      start of publish
    - fix softprops input: overwrite_existing does not exist upstream
      (silently ignored); the valid input is overwrite_files
    
    ci(release): dump jpackage out/err logs when macOS packaging fails
    
    ci(windows): align rust cache save key with restore key (arch + v5)
    
    The save action wrote windows-rust-Windows-v3-<lock> with no arch while
    restore fanned out on windows-rust-Windows-<arch>-v4-<lock> — so every
    saved entry was unreachable by design. It also made the two matrix legs
    race to reserve the same key: ARM won, x64 got 'another job may be
    creating this cache'. Save now uses the exact restore key (arch + v5);
    restore falls back only to same-arch v5 prefixes to avoid pulling the
    stale archless v3 entries into the wrong build.
    
    ci: add temporary cache-inspect workflow
    
    ci(cache): one-shot push trigger so the temp inspector can run from a branch
    
    ci(cache): fix field name in inspector (api uses key)
    
    ci(cache): inspect via exact original path lists, per-OS matrix
    
    ci(cache): save only tools/android/build-jar gradle scopes
    
    Packaging scopes' build trees (1.3-2 GB each, 6 scopes) were ~90% installer
    outputs and jlink runtime duplicates that actions/cache negation patterns
    are unable to exclude (actions/toolkit#713). Saving ~7 GB per run kept the
    repo at the 10 GB cache cap and LRU-evicted build-jar/android/windows-rust
    entries within minutes of being saved. Packaging scopes are now
    restore-only: they fall back to the build-jar scope via restore-keys, and
    their outputs regenerate from the JAR artifact in a couple of minutes.
    
    Also remove the temporary cache-inspect workflow (purpose served).
    
    ci(cache): unify gradle-build path lists so restore-keys cross-hit
    
    Restores differ per path list: actions/cache computes a version stamp from
    the path list and only matches restore-keys via a version stamp (hash of
    the path list): entries with different path lists are invisible to each
    other's restore-keys, even with a shared key prefix. The build-jar scope
    kept compose/tmp while the generic list negated it, so the
    '-v2-build-jar-' fallback never matched for packaging scopes (measured in
    run 39349881796: 'Cache not found' listing the fallback prefix). Drop the
    ineffective '!*/compose/tmp' negation (no-op at save time anyway per
    actions/toolkit#713) so all non-android scopes share one version stamp;
    packaging restores now warm from the build-jar entry.
    
    ci: enable Gradle configuration cache in CI; temporary --profile on Linux packaging
    
    ci: revert configuration cache (script-closure tasks not serializable); keep --profile diagnostic
    
    ci: drop temporary --profile diagnostic (profile captured; deb/rpm identified as the quiet ~45s/~23s hogs)
    
    ci: build the macOS x64 DMG on an Intel runner (macos-26-intel)
    
    macos-latest resolves to an arm64 image, so the 'Intel' matrix job ran on
    Apple Silicon and jpackage shipped arm64 binaries under the -intel.dmg
    name (v1.2.0-beta18): Intel Macs refuse it with 'this program isn't
    supported on this mac'. jpackage cannot cross-build, and the Gradle
    daemon JVM criteria (gradle-daemon-jvm.properties) provision the daemon
    for the host arch, so every arch decision followed the runner. Pin each
    matrix entry to its native runner.
    
    proguard: keep JNA entire API from stripping (native GetStaticMethodID lookups)
    
    jnidispatch resolves com.sun.jna.Native#dispose by name from native code
    during initIDs; ProGuard stripped it (not a Java-native method, no Java
    references), so every Windows package died at launch with
    'Failed to launch JVM':
      UnsatisfiedLinkError: Can't obtain static method dispose
          from class com.sun.jna.Native
          at com.sun.jna.platform.win32.Shell32.<clinit>
    Linux/macOS never load Shell32, so only Windows builds were affected
    (both x64 and arm64). Also keep classes extending/implementing JNA
    (Libraries, Callbacks, Structures are loaded reflectively at runtime).
    
    ci: speed up release builds; desktop/chat and theme updates
    
    Share JVM compile outputs from Build JAR, fix macOS Playwright caching,
    cache DMG export, and enable configuration cache on CI. Includes desktop
    chrome, attachment preview, system theme, and related shared fixes.
    
    Co-authored-by: Cursor <cursoragent@cursor.com>
    
    ci: drop configuration cache on release (Compose ProGuard incompatible)
    
    Co-authored-by: Cursor <cursoragent@cursor.com>
    
    ci: skip JVM recompile on macOS/Windows when Build JAR artifact is restored
    
    Gradle has no cross-OS execution history for restored classes; gate
    compileKotlinJvm, desktop compileKotlin, and generateAppBuildInfo when
    FROMCHAT_PREBUILT_JVM is set and outputs are present.
    
    Co-authored-by: Cursor <cursoragent@cursor.com>
  • Windows installer
    Improve the installer, fix context menu on Windows, add CI workflows
  • More desktop and mobile fixes
    Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
    
    # Conflicts:
    #	.idea/gradle.xml
    #	gradle/gradle-daemon-jvm.properties
  • Implement desktop support
    Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
  • Update README
    Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>