Hey y'all!
I have a Tauri app that compiles well on Windows, but not on Mac, and I think it's because my CLI isn't updated to V2.
This is what I get when I try to build:
% cargo tauri build
Error `tauri.conf.json` error on `build`: Additional properties are not allowed ('frontendDist' was unexpected)
Error `tauri.conf.json` error: Additional properties are not allowed ('app', 'bundle', 'identifier', 'productName', 'version' were unexpected)
I tried running this after seeing someone post about it here:
cargo install tauri-cli --version "^2.0.0-beta" --locked
But, when I try that, it fails. At first it had me run brew install pkg-config, but now this is my error:
...
pkg-config exited with status code 1
> PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags openssl
The system library `openssl` required by crate `openssl-sys` was not found.
The file `openssl.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
The PKG_CONFIG_PATH environment variable is not set.
HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `openssl.pc`.
--- stderr
thread 'main' panicked at /Users/cassidoo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.101/build/find_normal.rs:190:5:
Could not find directory of OpenSSL installation, and this `-sys` crate cannot
proceed without this knowledge. If OpenSSL is installed and this crate had
trouble finding it, you can set the `OPENSSL_DIR` environment variable for the
compilation process.
Make sure you also have the development packages of openssl installed.
For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.
If you're in a situation where you think the directory *should* be found
automatically, please open a bug at https://github.com/sfackler/rust-openssl
and include information about your system as well as this message.
$HOST = aarch64-apple-darwin
$TARGET = aarch64-apple-darwin
openssl-sys = 0.9.101
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `tauri-cli v2.0.0-beta.10`, intermediate artifacts can be found at `/var/folders/3k/wc00yjy55rl_61486g6z7nb80000gn/T/cargo-installuODfF0`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Any ideas what I might be missing?