Skip to content

Installation #1

@qbalsdon

Description

@qbalsdon

When trying to install on a mac, I'm having some issues, I think they range from n00b to not so much:

  1. install yarn brew install yarn (did that)
  2. 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

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions