Merge branch 'master' of github.com:shrapnelnet/libremines
This commit is contained in:
commit
004fe776eb
26
README.md
26
README.md
@ -2,35 +2,33 @@
|
|||||||
|
|
||||||
"named this way because i didn't realise there was another libremines!"
|
"named this way because i didn't realise there was another libremines!"
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
### Requirements:
|
### Requirements:
|
||||||
- Java 21 or newer (openjdk-21-jdk)
|
- Java 21
|
||||||
- Maven 3.8.8 (note: some versions cause gluon to freak out)
|
- Maven 3.8.8 or lower
|
||||||
- GraalVM 21
|
- GraalVM 21
|
||||||
|
|
||||||
### Instructions:
|
### Instructions:
|
||||||
|
|
||||||
Create the maven wrapper. gluonfx does not like versions of maven that are not 3.8.8:
|
Create the maven wrapper at version 3.8.8. GluonFX does not work with newer versions as of 2024-07-27.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
mvn wrapper:wrapper -Dmaven=3.8.8
|
mvn wrapper:wrapper -Dmaven=3.8.8
|
||||||
```
|
```
|
||||||
|
|
||||||
This is helpful for version management, in case you have an incompatible version of maven installed.
|
Install dependencies, build and run:
|
||||||
Install dependencies:
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
./mvnw install
|
./mvnw dependency:resolve gluonfx:build
|
||||||
```
|
|
||||||
|
|
||||||
Build and run:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
GRAALVM_HOME=/path/to/graalvm ./mvnw gluonfx:build
|
|
||||||
```
|
```
|
||||||
|
|
||||||
A native binary should be placed at `target/gluonfx/<your architecture>/libremines`
|
A native binary should be placed at `target/gluonfx/<your architecture>/libremines`
|
||||||
|
|
||||||
|
Alternatively, to run using the JVM, use:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
./mvnw javafx:run
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user