Skip to content

externalBin not copied in dev mode #1298

@gabcoh

Description

@gabcoh

Describe the bug
The primary issue is tauri::api::command::command_path does not give valid path when run in dev mode. However, it can also be viewed as tauri dev failing to copy externalBins to to target directory.

To Reproduce
Steps to reproduce the behavior:

  1. Add `externalBin: ["localfile"]
  2. In main.rs print tauri::api::command::command_path
  3. run tauri dev
  4. the printed file will not exist

Expected behavior
In dev mode tauri should either copy over the external bins to the target directory and tauri::api::command::command_path can remain unchanged or tauri::api::command::command_path should check if it is run in dev mode and if so directly return the path provided in externalBin

Platform and Versions (please complete the following information):

OS: Linux
Node: 15.8.0
NPM: 6.1.11
Yarn: 1.22.10
Rustc: 1.50.0

Additional context
Add any other context about the problem here.

Stack Trace

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions