From 070b50c8b2a7537f532d7738167425641e457db6 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 18 Mar 2023 20:44:52 +0800 Subject: [PATCH] build: jar packaging command --- README.md | 10 ++++++++++ bin/MANIFEST.MF | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 bin/MANIFEST.MF diff --git a/README.md b/README.md index 9a7567d..9ed46e6 100644 --- a/README.md +++ b/README.md @@ -225,6 +225,16 @@ Huffman Table Length: 0 ================================================================ ``` +## Build + +```bash +$ javac -sourcepath ./src/ ./src/main.java -d ./bin/ +$ cd ./bin/ +$ jar cvfm mobi-meta.jar MANIFEST.MF Main.class mobimeta/*.class +$ java -jar mobi-meta.jar +(HELP MESSAGE...) +``` + ## License Use the same MIT license as [Java-Mobi-Metadata-Editor](https://github.com/kwkoo/Java-Mobi-Metadata-Editor). diff --git a/bin/MANIFEST.MF b/bin/MANIFEST.MF new file mode 100644 index 0000000..54d8a28 --- /dev/null +++ b/bin/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Created-By: Dnomd343 +Main-Class: Main