tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[feat] Get bundle tools from local path

Open taoqf opened this issue 1 year ago • 3 comments

Describe the problem

I cannot build app because I could not access to network.

Describe the solution you'd like

  1. Release these resources with stable tauri.
  2. Support an option like --localpath to copy local files from.
  3. Both above.

Alternatives considered

  1. Mirror, I searched and find env TAURI_BUNDLER_TOOLS_GITHUB_MIRROR and TAURI_BUNDLER_TOOLS_GITHUB_MIRROR_TEMPLATE, and I prefer local file, it's more stable.

Additional context

No response

taoqf avatar Nov 27 '24 02:11 taoqf

Release these resources with stable tauri.

Some of the tools used are too large to be included in tauri itself imo

Support an option like --localpath to copy local files from.

I agree that an explicit approach makes sense, but for now simply adding the files to the ~/.cache/tauri (linux) or AppData/Local/tauri (windows) directory yourself should skip the downloads.

FabianLars avatar Nov 27 '24 10:11 FabianLars

I checked fn prepare_tools, Thanks. Should I close this issue?

taoqf avatar Nov 30 '24 02:11 taoqf

No, i think we should think about some proper support for this, even if it's just documentation on what tools are needed where.

FabianLars avatar Nov 30 '24 11:11 FabianLars

@FabianLars local-tools is '.tauri', but the docs said .tauri-tools.

taoqf avatar Jan 15 '25 01:01 taoqf

thanks https://github.com/tauri-apps/tauri/pull/12409

FabianLars avatar Jan 15 '25 11:01 FabianLars