Skip to content

Conversation

@jerome-benoit
Copy link
Contributor

Summary

Follow-up to #7102 which was merged incomplete. Completes the symlink support implementation and enables CI validation for PRs.

Changes

Desktop symlink support:

  • Use tauri::process::current_binary() instead of tauri::utils::platform::current_exe()
  • Pass AppHandle to get_sidecar_path() to provide required &Env parameter
  • Update install_cli() and sync_cli() to pass AppHandle through call chain

CI improvements:

  • Enable nix-desktop workflow on pull_request events with same paths as push

Context

PR #7102 introduced tauri::process::current_binary() but didn't pass the required &Env parameter, causing build failures. This PR fixes the implementation by properly threading the AppHandle through the call chain.

…or PRs

Follow-up to anomalyco#7102 which was merged incomplete:
- Use tauri::process::current_binary() instead of tauri::utils::platform::current_exe()
- Pass AppHandle to get_sidecar_path() to provide required &Env parameter
- Update install_cli() and sync_cli() to pass AppHandle through call chain
- Enable nix-desktop workflow on pull_request events for same paths as push
Copilot AI review requested due to automatic review settings January 6, 2026 18:26
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR completes the incomplete symlink support implementation from #7102 by properly threading the AppHandle parameter through the call chain to enable tauri::process::current_binary() API usage, and enables CI validation for pull requests.

  • Updates function signatures to accept and pass AppHandle for symlink-aware binary path resolution
  • Fixes build failures by providing the required &Env parameter to tauri::process::current_binary()
  • Enables the nix-desktop CI workflow for pull request events

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/desktop/src-tauri/src/lib.rs Updates spawn_sidecar to pass app parameter when calling get_sidecar_path for non-Windows platforms
packages/desktop/src-tauri/src/cli.rs Updates get_sidecar_path to accept AppHandle and use tauri::process::current_binary; updates install_cli to accept and pass AppHandle; updates sync_cli to pass app when calling install_cli
.github/workflows/nix-desktop.yml Adds pull_request trigger with same path filters as push trigger to enable CI validation for PRs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jerome-benoit jerome-benoit force-pushed the fix/desktop-symlink-support-complete branch 3 times, most recently from c181704 to 14d0d35 Compare January 6, 2026 18:51
@jerome-benoit jerome-benoit force-pushed the fix/desktop-symlink-support-complete branch from 14d0d35 to 562df96 Compare January 6, 2026 18:53
@jerome-benoit
Copy link
Contributor Author

Closing this PR - it contained unrelated files from branch history. Opening clean PR with only the necessary changes.

@jerome-benoit jerome-benoit deleted the fix/desktop-symlink-support-complete branch January 13, 2026 00:12
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.

1 participant