Skip to content

Commit

Permalink
Update contributing.md (#101)
Browse files Browse the repository at this point in the history
* Update contributing.md

* Changelog

* Fix changelog file name

* Update CONTRIBUTING.md

Co-authored-by: Dmitry Dodzin <[email protected]>

---------

Co-authored-by: Dmitry Dodzin <[email protected]>
  • Loading branch information
eyalb181 and DmitryDodzin authored Aug 24, 2023
1 parent db5fafe commit 0bc2953
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ issue.

## Building the IntelliJ plugin

First, [build the mirrord binaries](https://github.com/metalbear-co/mirrord/blob/main/CONTRIBUTING.md#build-and-run-mirrord) if not yet built. Then:
First, make sure you have JDK 17 installed.

Then [build the mirrord binaries](https://github.com/metalbear-co/mirrord/blob/main/CONTRIBUTING.md#build-and-run-mirrord) if not yet built. Then:

```bash
cd intellij-ext
cd mirrord-intellij
```

### On macOS

```bash
cp <path to mirrord repo>/target/universal-apple-darwin/debug/libmirrord_layer.dylib .
touch libmirrord_layer.so
mkdir -p bin/macos
cp <path to mirrord repo>/target/universal-apple-darwin/debug/mirrord bin/macos/
```

Expand All @@ -27,6 +30,7 @@ cp <path to mirrord repo>/target/universal-apple-darwin/debug/mirrord bin/macos/
```bash
cp <path to mirrord repo>/target/debug/libmirrord_layer.so .
touch libmirrord_layer.dylib
mkdir -p bin/linux/x86-64
cp <path to mirrord repo>/target/debug/mirrord bin/linux/x86-64/mirrord
```

Expand All @@ -53,7 +57,7 @@ Now open the plugin's code in IntelliJ IDEA. Create a new Gradle run configurati
Running this configuration in debug will open a new IDE window.
You can set breakpoints in the plugin's code in the first window, and use the plugin in the second window to reach the breakpoints.

You can control which IDE is opened with a `PLATFORMTYPE` environment variable. For example, set `PLATFORMTYPE=IU` for IntelliJ IDEA Ultimate.
You can control which IDE is opened with a `PLATFORMTYPE` environment variable, as listed [here](https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-type). For example, set `PLATFORMTYPE=IU` for IntelliJ IDEA Ultimate.


## Adding E2E tests
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+update-contributing-md.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update contributing.md

0 comments on commit 0bc2953

Please sign in to comment.