Skip to content

Commit

Permalink
cross compile instructions (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
uniboi authored Feb 3, 2024
1 parent 106007f commit 0b2f77b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
target = "x86_64-pc-windows-gnu"
17 changes: 16 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,25 @@ cargo generate -g /~https://github.com/catornot/rrplug.git

a git [template](/~https://github.com/catornot/rrplug-template) also exists but it may or not be maintained as well

## cross compiling plugins

To compile a plugin from a host machine that's not using windows, you need to install the required target.

```bash
rustup target add x86_64-pc-windows-gnu
```

Then create a cargo config to always compile your project for windows.

```bash
mkdir .cargo
echo "[build]\ntarget = \"x86_64-pc-windows-gnu\"" > .cargo/config.toml
```

## versioning
rrplug had a major rewrite for each plugins version so versions that a `x` plugins version are `x.\*.\*`
| rrplug | plugins |
| :-----: | :-----: |
| `3.*.*` | `v3` |
| `2.*.*` | `v2` |
| `0.1.*` | `v1` |
| `0.1.*` | `v1` |

0 comments on commit 0b2f77b

Please sign in to comment.