diff --git a/tar2zen b/tar2zen index 2f52b60..cf3c460 100644 --- a/tar2zen +++ b/tar2zen @@ -192,7 +192,6 @@ mkdir -p $HOME/$DEB_DIR/usr/bin/ echo "Searching for executable files in $HOME/$TAR_DIR..." # Use find to get all files in TAR_DIR, check if they are executable, and then link them -find "$HOME/$TAR_DIR" -type f -exec file {} + | grep -i 'executable' | grep -vi 'binary' | cut -d: -f1 | grep -v -E 'glxtest|updater|vaapitest|pingsender|plugin-container|run-mozilla.sh|blender-softwaregl|blender-system-info.sh|blender-thumbnailer|*.py|*.rs' | while read -r file; do busybox ln -s "$file" "$HOME/$DEB_DIR/usr/bin/"; done # Specify the word to search for in the second directory # Check if the first directory exists @@ -248,6 +247,7 @@ export MOST_BINARIES_SUBDIR # Output the result cp ${MOST_BINARIES_SUBDIR}*.so $HOME/$DEB_DIR/usr/lib +find "$HOME/$DEB_DIR/usr/lib" -type f -exec file {} + | grep -i 'executable' | grep -vi 'binary' | cut -d: -f1 | grep -v -E 'glxtest|updater|vaapitest|pingsender|plugin-container|run-mozilla.sh|blender-softwaregl|blender-system-info.sh|blender-thumbnailer|*.py|*.rs' | while read -r file; do busybox ln -s "$file" "$HOME/$DEB_DIR/usr/bin/"; done search_dir="$HOME/$TAR_DIR/" file_types="*.jpg *.jpeg *.png *.bmp *.svg" diff --git a/zendebinstaller.sh b/zendebinstaller.sh index 0903ad1..5bfe084 100755 --- a/zendebinstaller.sh +++ b/zendebinstaller.sh @@ -2,12 +2,16 @@ NC=$(tput sgr0) BB=$(tput setaf 0; tput bold) try_again(){ echo "avaliable tag versions: " -echo "1. 0.0.0-a.2 (alpha)" -echo "2. 1.0.0-a.1 (alpha)" -echo "3. 1.0.0-a.2 (alpha)" -echo "4. 1.0.0-a.3 (alpha)" -echo "5. 1.0.0-a.4 (alpha)" -echo "6. 1.0.0-a.6 (alpha)" +echo "1. 0.0.0-a.2 " +echo "2. 1.0.0-a.1 " +echo "3. 1.0.0-a.2 " +echo "4. 1.0.0-a.3 " +echo "5. 1.0.0-a.4 " +echo "6. 1.0.0-a.6 " +echo "7. 1.0.0-a.7 " +echo "8. 1.0.0-a.8 " +echo "9. 1.0.0-a.9 " +echo "10. 1.0.0-a.10" read -p "enter a number containing a tag version (ex: 1 2 3 etc.): " tag if [ "$tag" = "1" ]; then wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/0.0.0-a.2/zen.linux.deb && sudo apt install ~/zen.linux.deb @@ -33,6 +37,22 @@ elif [ "$tag" = "6" ]; then wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/1.0.0-a.6/zen.linux.deb && sudo apt install ~/zen.linux.deb echo "uninstalling zen.linux.deb to avoid conflicts when installing a different version of zen browser" sudo rm -rf ~/zen.linux.deb +elif [ "$tag" = "7" ]; then +wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/1.0.0-a.7/zen.linux.deb && sudo apt install ~/zen.linux.deb +echo "uninstalling zen.linux.deb to avoid conflicts when installing a different version of zen browser" +sudo rm -rf ~/zen.linux.deb +elif [ "$tag" = "8" ]; then +wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/1.0.0-a.8/zen.linux.deb && sudo apt install ~/zen.linux.deb +echo "uninstalling zen.linux.deb to avoid conflicts when installing a different version of zen browser" +sudo rm -rf ~/zen.linux.deb +elif [ "$tag" = "9" ]; then +wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/1.0.0-a.9/zen.linux.deb && sudo apt install ~/zen.linux.deb +echo "uninstalling zen.linux.deb to avoid conflicts when installing a different version of zen browser" +sudo rm -rf ~/zen.linux.deb +elif [ "$tag" = "10" ]; then +wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/1.0.0-a.10/zen.linux.deb && sudo apt install ~/zen.linux.deb +echo "uninstalling zen.linux.deb to avoid conflicts when installing a different version of zen browser" +sudo rm -rf ~/zen.linux.deb else clear echo "${BB}invalid input, restarting script${NC}" @@ -42,12 +62,16 @@ try_again fi } echo "avaliable tag versions: " -echo "1. 0.0.0-a.2 (alpha)" -echo "2. 1.0.0-a.1 (alpha)" -echo "3. 1.0.0-a.2 (alpha)" -echo "4. 1.0.0-a.3 (alpha)" -echo "5. 1.0.0-a.4 (alpha)" -echo "6. 1.0.0-a.6 (alpha)" +echo "1. 0.0.0-a.2 " +echo "2. 1.0.0-a.1 " +echo "3. 1.0.0-a.2 " +echo "4. 1.0.0-a.3 " +echo "5. 1.0.0-a.4 " +echo "6. 1.0.0-a.6 " +echo "7. 1.0.0-a.7 " +echo "8. 1.0.0-a.8 " +echo "9. 1.0.0-a.9 " +echo "10. 1.0.0-a.10" read -p "enter a number containing a tag version (ex: 1 2 3 etc.): " tag if [ "$tag" = "1" ]; then wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/0.0.0-a.2/zen.linux.deb && sudo apt install ~/zen.linux.deb @@ -73,10 +97,26 @@ elif [ "$tag" = "6" ]; then wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/1.0.0-a.6/zen.linux.deb && sudo apt install ~/zen.linux.deb echo "uninstalling zen.linux.deb to avoid conflicts when installing a different version of zen browser" sudo rm -rf ~/zen.linux.deb +elif [ "$tag" = "7" ]; then +wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/1.0.0-a.7/zen.linux.deb && sudo apt install ~/zen.linux.deb +echo "uninstalling zen.linux.deb to avoid conflicts when installing a different version of zen browser" +sudo rm -rf ~/zen.linux.deb +elif [ "$tag" = "8" ]; then +wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/1.0.0-a.8/zen.linux.deb && sudo apt install ~/zen.linux.deb +echo "uninstalling zen.linux.deb to avoid conflicts when installing a different version of zen browser" +sudo rm -rf ~/zen.linux.deb +elif [ "$tag" = "9" ]; then +wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/1.0.0-a.9/zen.linux.deb && sudo apt install ~/zen.linux.deb +echo "uninstalling zen.linux.deb to avoid conflicts when installing a different version of zen browser" +sudo rm -rf ~/zen.linux.deb +elif [ "$tag" = "10" ]; then +wget -P ~/ https://github.com/GitXpresso/ZenDeb/releases/download/1.0.0-a.10/zen.linux.deb && sudo apt install ~/zen.linux.deb +echo "uninstalling zen.linux.deb to avoid conflicts when installing a different version of zen browser" +sudo rm -rf ~/zen.linux.deb else clear echo "${BB}invalid input, restarting script${NC}" sleep 0.5 clear try_again -fi +fi \ No newline at end of file