跳到正文
AI NEWS JOURNAL
Hacker News Show HNAI NEWS / JOURNAL

Show HN: Mergeon – A native desktop Git client written in Rust with GPUI

Article URL: https://github.com/Spilveru/mergeon Comments URL: https://news.ycombinator.com/item?id=50637887 Points: 1 # Comments: 0

翻译服务暂未运行,当前显示原文。

A fast, GPU-accelerated desktop Git client written in Rust with GPUI. Fast, native, keyboard-friendly Git workflows inspired by Fork — built for Linux, Windows, and macOS. Screenshots Features Installation Download prebuilt packages from GitHub Releases: Linux (x86_64): .AppImage (supports signed auto-updates) and .deb (Debian/Ubuntu, glibc ≥ 2.35) Windows (x86_64) (Beta): Mergeon-Setup-.exe (per-user NSIS installer) macOS (Beta): Mergeon--arm64-mac.zip (when built with macOS release enabled) Note: Linux packages are built and verified end-to-end on real targets. Windows and macOS builds are compiled in CI and currently considered beta until broader real-hardware testing is complete — bug reports are very welcome! Building from Source All source code lives in native/. Mergeon requires Rust stable (Edition 2024, see native/rust-toolchain.toml) and Git. 1. Install System Dependencies sudo apt-get update && sudo apt-get install -y \ build-essential clang cmake pkg-config git python3 \ libasound2-dev libfontconfig-dev libfreetype-dev libssl-dev \ libvulkan-dev libwayland-dev libx11-xcb-dev libxcb1-dev \ libxkbcommon-dev libxkbcommon-x11-dev libzstd-dev For running GUI tests on a headless machine, also install xvfb openbox mesa-vulkan-drivers. Install Rustup with the MSVC toolchain (x86_64-pc-windows-msvc) and Visual Studio C++ Build Tools. Optional: install LLVM (lld-link) for faster test linking, and NSIS 3.x to build installers. Install Xcode Command Line Tools (including the Metal Toolchain for GPUI shaders) and Rustup. 2. Run & Test git clone https://github.com/Spilveru/mergeon.git cd mergeon/native # Launch Mergeon cargo run -p mergeon # Run the full test suite (use tools/in-x.sh on headless Linux) cargo test --workspace --locked # Lint & formatting checks cargo fmt --all --check cargo clippy --workspace --all-targets --locked -- -D warnings Architecture Mergeon is structured as a layered Cargo workspace inside native/crates/: mergeon (desktop binary, window shell, command palette, global shortcuts) └─ mergeon-view-{home, sidebar, toolbar, commits, changes, diff} + mergeon-ui └─ mergeon-app (AppModel GPUI entity, async flows, undo stack) └─ mergeon-backend (synchronous facade, OS keyring AES-256-GCM cipher, shell) └─ mergeon-git-ops · mergeon-git-query · mergeon-runtime mergeon-gitcmd · mergeon-model · mergeon-store mergeon-github · mergeon-updater Additional technical documentation lives in native/docs/ (app-layer.md, app-api.md, ui-components.md, packaging.md). Vendored GPUI (native/vendor/gpui-pre) Mergeon currently vendors a snapshot of gpui-pre 0.3.7 (Zed's GPUI, Apache-2.0) with 4 small UI fixes documented in native/vendor/gpui-pre/MERGEON.md. Those patches remain licensed under Apache-2.0 for upstream compatibility. Configuration & Releases GitHub OAuth: Uses GitHub's public OAuth Device Flow (no client secret). Override with MERGEON_GITHUB_CLIENT_ID if building a fork with your own OAuth/GitHub App (see .env.example). Signed Auto-Updates: Releases built by .github/workflows/release.yml generate latest*.yml manifests signed with Ed25519 (latest*.yml.sig) via mergeon-manifest-check (MERGEON_UPDATE_SIGNING_KEY secret + MERGEON_UPDATE_PUBLIC_KEY variable). Packaged builds enforce HTTPS and verify both the Ed25519 manifest signature and the installer SHA-512 checksum. Security Please report security issues privately using GitHub Security Advisories. See SECURITY.md for details. Contributing Contributions, bug reports, and ideas are welcome! Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md before opening a pull request. Mergeon is licensed under the GNU General Public License v3.0 or later (LICENSE). Third-party licenses and attributions are listed in native/THIRD-PARTY-NOTICES.md.

资料来源

阅读原文 ↗

相关主题

← 继续阅读全部动态