Skip to content

feat: add external bin (sidecar) path resolver - #16265

Open
lucasfernog wants to merge 2 commits into
devfrom
feat/sidecar-path
Open

lucasfernog wants to merge 2 commits into
devfrom
feat/sidecar-path

Conversation

@lucasfernog

Copy link
Copy Markdown
Member

@kxrn-gupta

kxrn-gupta commented Oct 12, 2026 •

Copy link
Copy Markdown

Awesome to see this land directly in core Tauri @lucasfernog! 🚀

The PathResolver API integration across both Rust and @tauri-apps/api/path looks super clean and unified.

Since this was ported over from #3700, could you please add a Co-authored-by: Karan Gupta <83299258+karan5028ji@users.noreply.github.com> trailer when merging? Would love to have the contribution linked to core Tauri! 🙌

Comment thread packages/api/src/path.ts Outdated
*
* @since 2.13.0
*/
async function resolveSidecar(name: string): Promise<string> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since our config is externalBin, does it make sense to match it here?

@kxrn-gupta kxrn-gupta Oct 13, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Both make a lot of sense! Historically developers know the concept as 'sidecar' from the guides and app.shell().sidecar(), but matching externalBin aligns directly with tauri.conf.json > bundle > externalBin.

Having resolveSidecar (or keeping one as an alias of resolveExternalBin) might give the best of both worlds for DX and discoverability. Happy to roll with whichever naming you and @lucasfernog prefer!

Comment thread crates/tauri/src/path/mod.rs Outdated
})?;

// when running tests the executable is in the `deps` directory
let base_dir = if exe_dir.ends_with("deps") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe re-use our check from resource_dir_from?

@Legend-Master Legend-Master added this to the 2.13 milestone Oct 13, 2026
lucasfernog and others added 2 commits October 13, 2026 05:46
@lucasfernog lucasfernog changed the title feat: add sidecar path resolver feat: add external bin (sidecar) path resolver Oct 13, 2026

This branch has not been deployed

No deployments
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.

3 participants