diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..5332826 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[target.aarch64-apple-darwin] +rustflags = ["-C", "link-args=-Wl,-rpath,@executable_path"] + +[target.x86_64-apple-darwin] +rustflags = ["-C", "link-args=-Wl,-rpath,@executable_path"] diff --git a/README.md b/README.md index 8bb807c..c3b09aa 100644 --- a/README.md +++ b/README.md @@ -136,8 +136,12 @@ G3 is designed for: # Build the project cargo build --release -# Run G3 -cargo run +# Run from the build directory +./target/release/g3 + +# Or copy both files to somewhere in your PATH (macOS only needs both files) +cp target/release/g3 ~/.local/bin/ +cp target/release/libVisionBridge.dylib ~/.local/bin/ # macOS only # Execute a task g3 "implement a function to calculate fibonacci numbers"