How can I use unpublished Tauri changes? #5695
Beanow
announced in
Frequently Asked
Replies: 1 comment 1 reply
-
I think when using the
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Mirrored from https://tauri.app/v1/guides/faq/#how-can-i-use-unpublished-tauri-changes
To use Tauri from GitHub (bleeding edge version) you need to change your
Cargo.toml
file and update your CLI and API.Pulling the Rust crate from source
Append this to your
Cargo.toml
file:This will force all your dependencies to use
tauri
andtauri-build
from Git instead of crates.io.Using the Tauri CLI from source
If you are using the Cargo CLI, you can install it directly from GitHub:
If you are using the
@tauri-apps/cli
package, you will need to clone the repo and build it:git clone https://github.com/tauri-apps/tauri git checkout dev cd tauri/tooling/cli/node yarn yarn build
To use it, run directly with node:
Alternatively, you can run your app with Cargo directly:
Using the Tauri API from source
It is recommended to also use the Tauri API package from source when using the Tauri crate from GitHub (though it might not be needed).
To build it from source, run the following script:
git clone https://github.com/tauri-apps/tauri git checkout dev cd tauri/tooling/api yarn yarn build
Now you can link it using yarn:
Or you can change your
package.json
to point to the dist folder directly:Beta Was this translation helpful? Give feedback.
All reactions