update readme

This commit is contained in:
Minecon724 2024-09-03 13:11:42 +02:00
parent cc44a96fc6
commit a3c367d928
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -1,7 +1,6 @@
# ChaQt
Qt application using chatapi[^1]
Qt application using chatapi[^1] \
(it will be after I learn)
---
@ -11,20 +10,18 @@ Qt application using chatapi[^1]
- Qt **6.7.2**
## Usage
```
./mvnw compile exec:java -Djava.library.path=/home/user/Qt/6.7.2/gcc_64/lib
```
Replace `/home/user/Qt/6.7.2/gcc_64/lib` with your Qt installation
In both cases, replace `/home/user/Qt/6.7.2/gcc_64/lib` with your Qt installation[^4]
Or:
1. Compile:
```
./mvnw package
```
3. `java -Djava.library.path=/home/user/Qt/6.7.2/gcc_64/lib -jar target/chaqt-1.0-SNAPSHOT.jar`
- Replace `/home/user/Qt/6.7.2/gcc_64/lib` with your Qt installation
- You can set `LD_LIBRARY_PATH` instead of `Djava.library.path` (same value)
- `chaqt-1.0-SNAPSHOT.jar` is the executable, you can move it away and delete this repo
- Just run:
```shell
./mvnw compile exec:java -Djava.library.path=/home/user/Qt/6.7.2/gcc_64/lib
```
- Package[^5] and run:
```shell
./mvnw package
java -Djava.library.path=/home/user/Qt/6.7.2/gcc_64/lib -jar target/chaqt-1.0-SNAPSHOT.jar
```
### Downloading Qt
- For 64-bit Linux:
@ -44,6 +41,13 @@ Or:
### Notes
[^1]: considering renaming \
[^2]: Signature is on this repo: `qt672.tar.zst.sig` \
[^1]: considering renaming
[^2]: Signature is on this repo: `qt672.tar.zst.sig`
[^3]: By absolute I mean like `/home/user/Qt/6.7.2/gcc_64/lib`
[^4]: You can use an environment variable `LD_LIBRARY_PATH` instead of `Djava.library.path`. Make it the same value
[^5]: Saves the artifact as `chaqt-1.0-SNAPSHOT.jar` in the `target` directory. \
You can move it away and delete this repo