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