From 266e472cafc7bd4b46c9b5e6e7464c6deaa97581 Mon Sep 17 00:00:00 2001 From: SALES Date: Wed, 21 Dec 2022 20:16:06 +1100 Subject: [PATCH 1/3] doc(shell script install) - https://github.com/opt-nc/j7zip/issues/2 - https://github.com/opt-nc/j7zip/issues/14 - https://github.com/opt-nc/j7zip/issues/2 --- README.md | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 04e0283..163f521 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,65 @@ After downloading, get the lastest help usage typing : java -jar j7zip.jar -h ``` +# 🤓 Linux shell install script + +Below are resources to help install `j7zip` on any Linux distro. + +## ☕ Java runtime (`sdkman!` install) + +Java 8 is a prerequisite, here is the script to install it properly: + +``` +sudo apt-get install zip +curl -s "https://get.sdkman.io" | bash +source "$HOME/.sdkman/bin/sdkman-init.sh" +sdk install java 8.0.302-open +java -version +clear +``` + + +## 📜 Shell Install script + + +``` +# Set up the target version +export J7ZIP_VERSION=v1.0.0 + +# !!! DO NOT CHANGE ANYTHING BELOW THIS LINE !!! +curl -LO https://github.com/opt-nc/j7zip/releases/download/$J7ZIP_VERSION/j7zip.jar +file j7zip.jar +sudo mkdir /opt/j7zip +sudo cp j7zip.jar /opt/j7zip/j7zip.jar + +cat <j7zip.sh +#!/bin/sh +java -jar /opt/j7zip/j7zip.jar "\$@" +EOF + +sudo cp j7zip.sh /opt/j7zip +sudo chmod +x /opt/j7zip/j7zip.sh +sudo ln -s /opt/j7zip/j7zip.sh /usr/bin/j7zip + +# clean up the mess +rm j7zip* +clear +``` + + +## 🚀 Ready to Use `j7zip` + +``` +# Get the current version +j7zip -V + +# Get some help +j7zip -h +``` + # 🙏 Credits -This tool is based on [Apache commons-compress](https://commons.apache.org/proper/commons-compress/) and [xz](https://tukaani.org/xz/java.html) +This tool is based on: + +- [Apache commons-compress](https://commons.apache.org/proper/commons-compress/) +- [xz](https://tukaani.org/xz/java.html) From 816e81091b8e429041597b4c60595858e0cd1ade Mon Sep 17 00:00:00 2001 From: SALES Date: Thu, 22 Dec 2022 09:14:04 +1100 Subject: [PATCH 2/3] doc(keep README slim) --- README.md | 56 ------------------------------------------------------- 1 file changed, 56 deletions(-) diff --git a/README.md b/README.md index 163f521..0ad5a10 100644 --- a/README.md +++ b/README.md @@ -15,62 +15,6 @@ After downloading, get the lastest help usage typing : java -jar j7zip.jar -h ``` -# 🤓 Linux shell install script - -Below are resources to help install `j7zip` on any Linux distro. - -## ☕ Java runtime (`sdkman!` install) - -Java 8 is a prerequisite, here is the script to install it properly: - -``` -sudo apt-get install zip -curl -s "https://get.sdkman.io" | bash -source "$HOME/.sdkman/bin/sdkman-init.sh" -sdk install java 8.0.302-open -java -version -clear -``` - - -## 📜 Shell Install script - - -``` -# Set up the target version -export J7ZIP_VERSION=v1.0.0 - -# !!! DO NOT CHANGE ANYTHING BELOW THIS LINE !!! -curl -LO https://github.com/opt-nc/j7zip/releases/download/$J7ZIP_VERSION/j7zip.jar -file j7zip.jar -sudo mkdir /opt/j7zip -sudo cp j7zip.jar /opt/j7zip/j7zip.jar - -cat <j7zip.sh -#!/bin/sh -java -jar /opt/j7zip/j7zip.jar "\$@" -EOF - -sudo cp j7zip.sh /opt/j7zip -sudo chmod +x /opt/j7zip/j7zip.sh -sudo ln -s /opt/j7zip/j7zip.sh /usr/bin/j7zip - -# clean up the mess -rm j7zip* -clear -``` - - -## 🚀 Ready to Use `j7zip` - -``` -# Get the current version -j7zip -V - -# Get some help -j7zip -h -``` - # 🙏 Credits This tool is based on: From 98a843ea7c8610150c418b866a8ed8670c64d545 Mon Sep 17 00:00:00 2001 From: SALES Date: Thu, 22 Dec 2022 09:15:02 +1100 Subject: [PATCH 3/3] Debian like install --- INSTALL_DEBIAN.md | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 INSTALL_DEBIAN.md diff --git a/INSTALL_DEBIAN.md b/INSTALL_DEBIAN.md new file mode 100644 index 0000000..3f4e694 --- /dev/null +++ b/INSTALL_DEBIAN.md @@ -0,0 +1,56 @@ +# 🤓 Linux shell install script + +Below are resources to help install `j7zip` on any debian based Linux distro. + +## ☕ Java runtime (`sdkman!` install) + +Java 8 is a prerequisite, here is the script to install it properly: + +``` +sudo apt-get install zip +curl -s "https://get.sdkman.io" | bash +source "$HOME/.sdkman/bin/sdkman-init.sh" +sdk install java 8.0.302-open +java -version +clear +``` + + +## 📜 Shell Install script + + +``` +# Set up the target version +export J7ZIP_VERSION=v1.0.0 + +# !!! DO NOT CHANGE ANYTHING BELOW THIS LINE !!! +curl -LO https://github.com/opt-nc/j7zip/releases/download/$J7ZIP_VERSION/j7zip.jar +file j7zip.jar +sudo mkdir /opt/j7zip +sudo cp j7zip.jar /opt/j7zip/j7zip.jar + +cat <j7zip.sh +#!/bin/sh +java -jar /opt/j7zip/j7zip.jar "\$@" +EOF + +sudo cp j7zip.sh /opt/j7zip +sudo chmod +x /opt/j7zip/j7zip.sh +sudo ln -s /opt/j7zip/j7zip.sh /usr/bin/j7zip + +# clean up the mess +rm j7zip* +clear +``` + + +## 🚀 Ready to Use `j7zip` + +``` +# Get the current version +j7zip -V + +# Get some help +j7zip -h +``` +