From a3c367d9289048a8998e53f58e20e39af4b59f88 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Tue, 3 Sep 2024 13:11:42 +0200 Subject: [PATCH] update readme --- README.md | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 700cb0a..379f425 100644 --- a/README.md +++ b/README.md @@ -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` \ -[^3]: By absolute I mean like `/home/user/Qt/6.7.2/gcc_64/lib` \ No newline at end of file +[^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 \ No newline at end of file