diff --git a/.gitignore b/.gitignore
index 9ee2896..41726a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -40,3 +40,15 @@ gradle-app.setting
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties
+### ArchLinuxPackages template
+*.tar
+*.tar.*
+*.exe
+*.msi
+*.tgz
+*.log.*
+*.sig
+
+pkg/
+src/
+
diff --git a/.gitmodules b/.gitmodules
index 3e5b7a6..16ba58d 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,3 @@
[submodule "archpackage/jls"]
path = archpackage/jls
- url = ssh://aur@aur.archlinux.org/dwl-git.git
+ url = ssh://aur@aur.archlinux.org/jls.git
diff --git a/.idea/artifacts/jls_main_jar.xml b/.idea/artifacts/jls_jar.xml
similarity index 88%
rename from .idea/artifacts/jls_main_jar.xml
rename to .idea/artifacts/jls_jar.xml
index 0de407c..362236d 100644
--- a/.idea/artifacts/jls_main_jar.xml
+++ b/.idea/artifacts/jls_jar.xml
@@ -3,7 +3,7 @@
$PROJECT_DIR$/out/artifacts/jls_main_jar
-
+
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..77c2d53
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,344 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1654247662754
+
+
+ 1654247662754
+
+
+
+
+
+
+
+
+
+
+
+
+ 1654755440050
+
+
+
+ 1654755440050
+
+
+ 1654755483874
+
+
+
+ 1654755483875
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 2c334a3..5d67733 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,9 @@
## Install
-- Linux
+### Linux
+- From aur: `yay -S jls`
+- Manual:
- Make sure you installed `wget` and [nerd font](https://www.nerdfonts.com)
- Run this command
```bash
@@ -31,7 +33,8 @@
## Uninstall
-- Linux
+### Linux
+- Manual:
- Run this command
```bash
curl -s https://raw.githubusercontent.com/Anas-Elgarhy/jls/master/scripts/uninstall.sh | sudo bash
@@ -76,7 +79,7 @@
- [ ] Add Tests
- [ ] Add Formatter
- [ ] Add configs system
-- [ ] Crete arch package
+- [x] Crete arch package [created in aur](https://aur.archlinux.org/packages/jls)
### Available in
diff --git a/archpackage/.SRCINFO b/archpackage/.SRCINFO
deleted file mode 100644
index 537d48b..0000000
--- a/archpackage/.SRCINFO
+++ /dev/null
@@ -1,17 +0,0 @@
-pkgbase = jls
- pkgdesc = A modern ls with java.
- pkgver = 0.3.4
- pkgrel = 0
- epoch = 0
- url = https://github.com/Anas-Elgarhy/jls
- arch = any
- groups = java-utils
- license = GPL3
- depends = jdk-openjdk
- depends = nerd-fonts-fira-code
- provides = jls
- replaces = jls
- source = https://github.com/Anas-Elgarhy/jls/releases/download/0.3.4/jls-0.3.4.tar.gz
- sha256sums = 7eecaaa33723c710598490f8cc9b81fe8a033456b52f8794614bb453a85ce564
-
-pkgname = jls
diff --git a/archpackage/PKGBUILD b/archpackage/PKGBUILD
deleted file mode 100644
index 41973f1..0000000
--- a/archpackage/PKGBUILD
+++ /dev/null
@@ -1,36 +0,0 @@
-# This is an example PKGBUILD file. Use this as a start to creating your own,
-# and remove these comments. For more information, see 'man PKGBUILD'.
-# NOTE: Please fill out the license field for your package! If it is unknown,
-# then please put 'unknown'.
-
-# Maintainer: Anas Elgarhy
-pkgname=jls
-pkgver=0.3.4
-pkgrel=0
-epoch=0
-pkgdesc="A modern ls with java."
-arch=('any')
-url="https://github.com/Anas-Elgarhy/jls"
-license=('GPL3')
-groups=('java-utils')
-depends=('jdk-openjdk' 'nerd-fonts-fira-code')
-makedepends=()
-checkdepends=()
-optdepends=()
-provides=(jls)
-conflicts=()
-replaces=(jls)
-backup=()
-options=()
-install=
-changelog=
-source=("https://github.com/Anas-Elgarhy/jls/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
-noextract=()
-md5sums=()
-validpgpkeys=()
-sha256sums=('7eecaaa33723c710598490f8cc9b81fe8a033456b52f8794614bb453a85ce564')
-
-package() {
- sudo install -Dm644 ./jls.jar "/usr/share/java/jls/jls.jar"
- sudo install -Dm777 ./jls.sh "/bin/jls"
-}
diff --git a/archpackage/jls b/archpackage/jls
index fd502c7..f313040 160000
--- a/archpackage/jls
+++ b/archpackage/jls
@@ -1 +1 @@
-Subproject commit fd502c7c8468299f2d4f05bf756f6da8ca74538c
+Subproject commit f313040bdb8f43fc1513fcfb4e2021054be0c4a9
diff --git a/build.gradle b/build.gradle
index 0293036..92200ba 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,7 +3,7 @@ plugins {
}
group 'com.anas.javautils.jls'
-version '0.3.4'
+version '0.3.5'
repositories {
mavenCentral()
diff --git a/scripts/bundle-gz-file.sh b/scripts/bundle-gz-file.sh
new file mode 100755
index 0000000..2d57e3f
--- /dev/null
+++ b/scripts/bundle-gz-file.sh
@@ -0,0 +1,34 @@
+#!/bin/env sh
+if [ -f ".temp" ]; then
+ rm -r ./.temp/
+fi
+
+mkdir ./.temp/
+cp ../out/artifacts/jls_main_jar/jls.jar ./.temp/
+cp ./jls.sh ./.temp/
+
+
+cp ../out/artifacts/jls_main_jar/jls.jar .
+cp ./jls.sh .
+
+cd .temp
+
+ls
+
+VER="$1"
+echo "Create tar file to jls $VER ..."
+TARNAME=jls-"$VER".tar.gz
+tar -cvf "./$TARNAME" ./jls.sh ./jls.jar
+
+cd ../..
+if ! [ -f "./release" ]; then
+ echo "Create release file"
+ mkdir release
+fi
+
+echo "Move the $TARNAME to release directory."
+
+mv "./scripts/.temp/$TARNAME" ./release
+
+echo "Remove temp folder"
+rm -r ./scripts/.temp
diff --git a/scripts/install.sh b/scripts/install.sh
index 8b38a19..b0288d3 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -8,7 +8,7 @@ fi
INSTALL_PATH=/usr/share/java/jls
-VERSION=0.3.3
+VERSION=0.3.5
mkdir -p "$INSTALL_PATH"
diff --git a/src/main/java/com/anas/javautils/jls/Main.java b/src/main/java/com/anas/javautils/jls/Main.java
index 9f0fc9d..1f8e11c 100644
--- a/src/main/java/com/anas/javautils/jls/Main.java
+++ b/src/main/java/com/anas/javautils/jls/Main.java
@@ -6,7 +6,7 @@
import java.io.IOException;
public class Main {
- public static final String version = "0.3.4";
+ public static final String version = "0.3.5";
/**
* The entry point :D
diff --git a/src/main/java/com/anas/javautils/jls/output/ListOfFiles.java b/src/main/java/com/anas/javautils/jls/output/ListOfFiles.java
index 64fcb13..f2e2671 100644
--- a/src/main/java/com/anas/javautils/jls/output/ListOfFiles.java
+++ b/src/main/java/com/anas/javautils/jls/output/ListOfFiles.java
@@ -112,7 +112,7 @@ private String getLongFormat(
) {
final var IS_WITH_NO_COLORS = !argumentProcessor.hasOption(CLIOption.NO_COLORS);
final var WITH_OWNER = !argumentProcessor.hasOption(CLIOption.NO_OWNER);
- final var WITH_GROUP = !argumentProcessor.hasOption(CLIOption.GROUP);
+ final var WITH_GROUP = argumentProcessor.hasOption(CLIOption.GROUP);
final var WITH_DATE = !argumentProcessor.hasOption(CLIOption.NO_DATE);
final var WITH_PERMISSIONS = !argumentProcessor.hasOption(CLIOption.NO_PERMISSIONS);
final var WITH_SIZE = !argumentProcessor.hasOption(CLIOption.NO_SIZE);
diff --git a/src/main/java/META-INF/MANIFEST.MF b/src/main/resources/META-INF/MANIFEST.MF
similarity index 100%
rename from src/main/java/META-INF/MANIFEST.MF
rename to src/main/resources/META-INF/MANIFEST.MF