Skip to content

Remove node-gui - #2185

Open
nullPointerEnjoyer wants to merge 4 commits into
masterfrom
remove-node-gui
Open

nullPointerEnjoyer wants to merge 4 commits into
masterfrom
remove-node-gui

Conversation

@nullPointerEnjoyer

Copy link
Copy Markdown
Collaborator

Summary

Removes the node-gui desktop application and everything that ships or builds it. Desktop node management continues in the Nexus wallet; the node daemon, wallet-cli, wallet-rpc-daemon and all other executables are unaffected.

Replaces #2184 (opened from the wrong account; closed).

What is removed

  • The node-gui and node-gui/backend crates and the iced/iced_aw/iced_fonts workspace dependencies (plus the fontconfig-parser and iced_glyphon patches that existed only for the GUI; Cargo.lock shrinks by ~3100 lines)
  • NodeType::NodeGui and the GUI-conditional defaults in node-lib (Options::from_args no longer takes a node type; file logging now simply defaults to off)
  • GUI packaging: deb/rpm/arch GUI package modes, mintlayer-node-gui control/spec/PKGBUILD stanzas, desktop entry, icon pipeline, GUI smoke-test modes, and the postinst-gui script
  • GUI release jobs: GUI packages/tarball in release_linux.yml, GUI installer/zip in release_windows.yml, GUI DMG signing + artifact in release_macos.yml, and the build-tools/osx signing/bundle machinery (its only product was the GUI DMG)
  • Windows NSIS installer now builds the node installer only; installer smoke test reduced accordingly
  • node-gui-icon/logo assets, GUI entries in supply-chain audits, and GUI mentions in docs (README, node-daemon docs, wallet README, Trezor support doc, packaging README, docker build docs)

What is kept

  • 51-mintlayer.rules udev rules (wallet-cli and other wallet tools still use them for Ledger/Trezor)
  • trezor/ledger features and all wallet binaries; the workspace still builds with --features trezor,ledger
  • CHANGELOG notes the removal under Unreleased

Verification

  • cargo check --workspace --all-targets --features trezor,ledger: clean, zero warnings
  • cargo test -p node-lib -p logging: all pass
  • cargo clippy on node-lib/logging/node-daemon: no new warnings
  • cargo fmt --check on touched crates: clean
  • grep -ri node-gui over the tree: only the CHANGELOG entry remains
  • Workflow YAML validated; packaging shell scripts pass bash -n
  • macOS note: release_macos.yml previously built and notarized a GUI DMG via sign_and_notarize.sh; that step is removed, the node zip pipeline is untouched

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

🔍 OpenCodeReview found 2 issue(s) in this PR.

  • ✅ Successfully posted inline: 0 comment(s)
  • 📋 Routed to summary by policy: 1 comment(s)
  • ❌ Failed to post inline: 1 comment(s)

documentation · low

📄 .github/workflows/release_macos.yml (L26-L28)

⚠️ GitHub could not post this as an inline comment: Routed to summary (severity low · category documentation)

Stale comment: with the GUI removed, there is no longer any signing/notarization step in this workflow, so the phrase "instead of reaching the signing step" is misleading. Suggest rewording, e.g. "instead of deep inside the packaging steps".


maintainability · medium

📄 packaging/arch/build.sh (L96-L96)

⚠️ GitHub could not post this as an inline comment: Line 96 could not be resolved (outside PR diff hunks)

Unlike the deb/rpm builders (which validate --package in a case statement right after argument parsing), the Arch builder only rejects an invalid package value here, after pacman -Syu provisioning, user creation, and work-dir setup have already run (~lines 84-94). An invocation with --package gui (e.g. from a stale script or muscle memory) wastes significant container setup time before failing. Move the package validation up next to the --arch validation (~line 48) for consistency and fast failure.

💡 Suggested Change

Before:

if [ "$PACKAGE" = node ]; then

After:

case "$PACKAGE" in
    node) ;;
    *) echo "invalid --package: $PACKAGE" >&2; exit 2 ;;
esac

if [ "$PACKAGE" = node ]; then

Comment thread packaging/checks/verify-artifacts.sh Outdated
Comment on lines 23 to 24
"Mintlayer_Node_linux_${VERSION}_${PKGARCH}.pkg.tar.zst" \
"Mintlayer_Node_GUI_linux_${VERSION}_${PKGARCH}.pkg.tar.zst"; do
if [ -f "$DIST_DIR/$f" ]; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

bug · critical
Syntax error: the last item of the for f in ... list lost its word-terminator after removing the GUI artifacts. The \ at the end of the PKGARCH line now continues the word list onto the if line, so bash parses if [ -f ... ]; then as more list items and reports a syntax error (missing do). Remove the trailing backslash so the list closes before if.

Suggestion:

Suggested change
"Mintlayer_Node_linux_${VERSION}_${PKGARCH}.pkg.tar.zst" \
"Mintlayer_Node_GUI_linux_${VERSION}_${PKGARCH}.pkg.tar.zst"; do
if [ -f "$DIST_DIR/$f" ]; then
"Mintlayer_Node_linux_${VERSION}_${PKGARCH}.pkg.tar.zst"; do
if [ -f "$DIST_DIR/$f" ]; then

Comment thread supply-chain/config.toml Outdated
Comment on lines +925 to +927
[[exemptions.wasm-bindgen-futures]]
version = "0.4.58"
criteria = "safe-to-deploy"
criteria = "safe-to-run"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

security · high
This exemption is downgraded from safe-to-deploy to safe-to-run, but wasm-bindgen-futures 0.4.58 is still an active dependency of reqwest (see Cargo.lock line 5424), and reqwest is a production (deploy) dependency of remaining workspace crates. cargo vet computes deploy criteria over the union of target dependencies, so this downgrade will likely fail cargo vet for deploy targets — or, if vet passes with weakened checks, it means deploy code now ships with an unaudited/less-audited crate. If this change was made just to make vet pass after the node-gui removal, please re-verify the crate's audit status instead of lowering the bar; otherwise keep it safe-to-deploy.

Suggestion:

Suggested change
[[exemptions.wasm-bindgen-futures]]
version = "0.4.58"
criteria = "safe-to-deploy"
criteria = "safe-to-run"
[[exemptions.wasm-bindgen-futures]]
version = "0.4.58"
criteria = "safe-to-deploy"

Comment thread supply-chain/config.toml
Comment on lines 389 to +391
[[exemptions.half]]
version = "2.7.1"
criteria = "safe-to-deploy"
criteria = "safe-to-run"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

maintainability · medium
This half exemption is now stale: after removing node-gui, the half crate no longer appears in Cargo.lock (verified by search). Keeping an exemption for a crate that is not in the dependency graph can cause cargo vet to warn/fail on unused exemptions and misleads future maintainers into thinking half is still a dependency. It should have been removed entirely (e.g., via cargo vet prune) along with the other node-gui-related exemptions.

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.

2 participants