When building a Tauri project, can certain downloaded items specify a local file path through configuration or environment variables? #13916
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Nope, not yet at least. If you want to download the files yourself you have to move them to the required locations as well, example: #7338 (comment) Alternatively, if it's just the github links we use being problematic you can also specify different download urls via one of these env vars:
Copied from https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-cli/ENVIRONMENT_VARIABLES.md |
Beta Was this translation helpful? Give feedback.
-
According to the source code of
By the way, it would be great if, in addition to telling us the URLs of the files that need to be downloaded, Tauri could also inform us of the local path where the files should be unzipped or stored in its output logs during the build process. That way, we wouldn't have to look through Tauri's source code. |
Beta Was this translation helpful? Give feedback.
Nope, not yet at least. If you want to download the files yourself you have to move them to the required locations as well, example: #7338 (comment)
Alternatively, if it's just the github links we use being problematic you can also specify different download urls via one of these env vars:
TAURI_BUNDLER_TOOLS_GITHUB_MIRROR
- Specify a GitHub mirror to download files and tools used by tauri bundler.TAURI_BUNDLER_TOOLS_GITHUB_MIRROR_TEMPLATE
- Specify a GitHub mirror template to download files and tools used by tauri bundler, for example:https://mirror.example.com/<owner>/<repo>/releases/download/<version>/<asset>
.Copied from https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-cl…