-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
When trying to install on a mac, I'm having some issues, I think they range from n00b to not so much:
- install yarn
brew install yarn(did that) - when trying to install rust (
yarn tauri build) I got
failed to run 'cargo metadata' command to get workspace directory: failed to run command cargo metadata --no-deps --format-version 1: No such file or directory (os error 2)
Error failed to run 'cargo metadata' command to get workspace directory: failed to run command cargo metadata --no-deps --format-version 1: No such file or directory (os error 2)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
AI helped me with this one: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- But now I get:
error: environment variable `POSTHOG_API_KEY` not defined at compile time
--> src/analytics.rs:14:35
|
14 | const POSTHOG_API_KEY: &str = env!("POSTHOG_API_KEY");
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use `std::env::var("POSTHOG_API_KEY")` to read the variable at run time
but I managed to fix this by just running POSTHOG_API_KEY=your_key_here yarn tauri build
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels