From 728c1f5e389ce44323007a0b46379a86e8d512fd Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Sun, 13 Oct 2024 20:58:37 +0800 Subject: [PATCH 01/14] Add OpenSUSE to list of linutil added to package managers --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index f8aa0ea3..909e620e 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ curl -fsSL https://christitus.com/linuxdev | sh Linutil is also available as a package in various repositories: [![Packaging status](https://repology.org/badge/vertical-allrepos/linutil.svg)](https://repology.org/project/linutil/versions) +[![build result](https://build.opensuse.org/projects/home:solomoncyj/packages/linutil/badge.svg?type=default)](https://build.opensuse.org/package/show/home:solomoncyj/linutil)
Arch Linux @@ -58,7 +59,27 @@ paru -S linutil Replace `paru` with your preferred helper and `linutil` with your preferred package.
+
+ OpenSUSE + + While waiting for the Package to be shipped to the Factory, you can install the application for openSuse by running: + + ### TumbleWeed + + ```bash + zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo + zypper refresh + zypper install linutil + ``` + ### Slowroll + + ```bash + zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo + zypper refresh + zypper install linutil + ``` +
Cargo From 9e781b4d2a3fc7db9bf83315bdcae1df33f518a9 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Sun, 13 Oct 2024 21:18:21 +0800 Subject: [PATCH 02/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 909e620e..39427c4c 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ curl -fsSL https://christitus.com/linuxdev | sh Linutil is also available as a package in various repositories: [![Packaging status](https://repology.org/badge/vertical-allrepos/linutil.svg)](https://repology.org/project/linutil/versions) -[![build result](https://build.opensuse.org/projects/home:solomoncyj/packages/linutil/badge.svg?type=default)](https://build.opensuse.org/package/show/home:solomoncyj/linutil) +[![build result](https://build.opensuse.org/projects/home:solomoncyj/packages/linutil/badge.svg?type=percent)](https://build.opensuse.org/package/show/home:solomoncyj/linutil)
Arch Linux From 182c8925caed3a50904b8240dbe8d96895dfd3b1 Mon Sep 17 00:00:00 2001 From: solomocyj Date: Tue, 15 Oct 2024 14:41:17 +0800 Subject: [PATCH 03/14] set up install script --- .../applications-setup/linutil-installer.sh | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index 4bb241db..123521a4 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -25,6 +25,26 @@ installLinutil() { esac printf "%b\n" "${GREEN}Installed successfully.${RC}" ;; + zypper) + printf "%b\n" "Detecting flavor..." + flavor = [[zypper lr | grep -i "Tumbleweed"]] && echo "Tumbleweed" || echo "Slowroll" + printf "%b\n" " flavor detected is ${GREEN} ${flavor} ${RC}" + printf "%b\n" "setting up repos..." + if [$flavor == "Tumbleweed"] + then + zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo + fi + + if [$flavor == "Slowroll"] + then + zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo + fi + + printf "%b\n" "refreshing and installing" + zypper refresh + zypper install linutil + printf "%b\n" "${GREEN}Installed successfully.${RC}" + ;; *) printf "%b\n" "${RED}There are no official packages for your distro.${RC}" printf "%b" "${YELLOW}Do you want to install the crates.io package? (y/N): ${RC}" From e8559353010b6b8d0a1cfefbb5d4b703271132e4 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Wed, 16 Oct 2024 08:05:17 +0800 Subject: [PATCH 04/14] Update linutil-installer.sh --- core/tabs/applications-setup/linutil-installer.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index 123521a4..4b40c13c 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -32,17 +32,17 @@ installLinutil() { printf "%b\n" "setting up repos..." if [$flavor == "Tumbleweed"] then - zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo + "$ESCALATION_TOOL" "$PACKAGER" addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo fi if [$flavor == "Slowroll"] then - zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo + "$ESCALATION_TOOL" "$PACKAGER" addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo fi printf "%b\n" "refreshing and installing" - zypper refresh - zypper install linutil + "$ESCALATION_TOOL" "$PACKAGER" refresh + "$ESCALATION_TOOL" "$PACKAGER" install linutil printf "%b\n" "${GREEN}Installed successfully.${RC}" ;; *) From 3a63991e13b14e121b0f4b15132b3063bb0f7663 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Wed, 16 Oct 2024 08:19:38 +0800 Subject: [PATCH 05/14] Update linutil-installer.sh --- core/tabs/applications-setup/linutil-installer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index 4b40c13c..d8cfd2bc 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -26,10 +26,10 @@ installLinutil() { printf "%b\n" "${GREEN}Installed successfully.${RC}" ;; zypper) - printf "%b\n" "Detecting flavor..." - flavor = [[zypper lr | grep -i "Tumbleweed"]] && echo "Tumbleweed" || echo "Slowroll" + printf "\n" "Detecting flavor..." + flavor = zypper lr | grep -i "Tumbleweed" && echo "Tumbleweed" || echo "Slowroll" printf "%b\n" " flavor detected is ${GREEN} ${flavor} ${RC}" - printf "%b\n" "setting up repos..." + printf "\n" "setting up repos..." if [$flavor == "Tumbleweed"] then "$ESCALATION_TOOL" "$PACKAGER" addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo From 0d23986c8de39bb6ca99f8b6f89c0e4254f95408 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Wed, 16 Oct 2024 00:50:41 +0000 Subject: [PATCH 06/14] fixes --- core/tabs/applications-setup/linutil-installer.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index d8cfd2bc..ec4699f2 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -27,17 +27,17 @@ installLinutil() { ;; zypper) printf "\n" "Detecting flavor..." - flavor = zypper lr | grep -i "Tumbleweed" && echo "Tumbleweed" || echo "Slowroll" + [ zypper lr | grep -i "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll" printf "%b\n" " flavor detected is ${GREEN} ${flavor} ${RC}" printf "\n" "setting up repos..." - if [$flavor == "Tumbleweed"] + if [ $flavor == "Tumbleweed" ] then - "$ESCALATION_TOOL" "$PACKAGER" addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo + "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo fi - if [$flavor == "Slowroll"] + if [ $flavor == "Slowroll" ] then - "$ESCALATION_TOOL" "$PACKAGER" addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo + "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo fi printf "%b\n" "refreshing and installing" From 235c0842478c3cc6a090f158c74cdc0bd72e895f Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Wed, 16 Oct 2024 08:59:51 +0800 Subject: [PATCH 07/14] Update linutil-installer.sh --- core/tabs/applications-setup/linutil-installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index ec4699f2..2280c787 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -37,7 +37,7 @@ installLinutil() { if [ $flavor == "Slowroll" ] then - "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo + "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo fi printf "%b\n" "refreshing and installing" From 9215033b83f9882c67ae7cd5b72cb9ce584a35ea Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Wed, 16 Oct 2024 09:03:08 +0800 Subject: [PATCH 08/14] Update linutil-installer.sh --- core/tabs/applications-setup/linutil-installer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index 2280c787..62bc39d0 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -26,9 +26,9 @@ installLinutil() { printf "%b\n" "${GREEN}Installed successfully.${RC}" ;; zypper) - printf "\n" "Detecting flavor..." + printf '%s\n' 'detecting flavor' [ zypper lr | grep -i "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll" - printf "%b\n" " flavor detected is ${GREEN} ${flavor} ${RC}" + printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC" printf "\n" "setting up repos..." if [ $flavor == "Tumbleweed" ] then @@ -40,7 +40,7 @@ installLinutil() { "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo fi - printf "%b\n" "refreshing and installing" + printf '%s\n' 'refreshing and installing' "$ESCALATION_TOOL" "$PACKAGER" refresh "$ESCALATION_TOOL" "$PACKAGER" install linutil printf "%b\n" "${GREEN}Installed successfully.${RC}" From 54f7e462eca5bc3a2ed3aa522b32cf746b3e7dd5 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Wed, 16 Oct 2024 09:05:46 +0800 Subject: [PATCH 09/14] Update linutil-installer.sh --- core/tabs/applications-setup/linutil-installer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index 62bc39d0..7270626c 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -27,10 +27,10 @@ installLinutil() { ;; zypper) printf '%s\n' 'detecting flavor' - [ zypper lr | grep -i "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll" + [ zypper lr | grep -q "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll" printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC" - printf "\n" "setting up repos..." - if [ $flavor == "Tumbleweed" ] + printf "\n" "setting up repos" + if [[ $flavor == Tumbleweed ]] then "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo fi From 34b0dfc48588341f479b39775d5f01c29f892b6b Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Wed, 16 Oct 2024 09:17:37 +0800 Subject: [PATCH 10/14] Update linutil-installer.sh --- core/tabs/applications-setup/linutil-installer.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index 7270626c..0794b34a 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -27,15 +27,19 @@ installLinutil() { ;; zypper) printf '%s\n' 'detecting flavor' - [ zypper lr | grep -q "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll" + if zypper lr | grep -Fq Tumbleweed + then flavor=Tumbleweed + else flavor=Slowroll + fi + printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC" printf "\n" "setting up repos" - if [[ $flavor == Tumbleweed ]] + if [ "$flavor" = Tumbleweed ] then "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo fi - if [ $flavor == "Slowroll" ] + if [ "$flavor" = Slowroll ] then "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo fi From 084cd0f116ca172149b4a944841cdf225c0a8ebb Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Thu, 17 Oct 2024 20:55:46 +0800 Subject: [PATCH 11/14] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 39427c4c..8659605f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ curl -fsSL https://christitus.com/linuxdev | sh Linutil is also available as a package in various repositories: [![Packaging status](https://repology.org/badge/vertical-allrepos/linutil.svg)](https://repology.org/project/linutil/versions) -[![build result](https://build.opensuse.org/projects/home:solomoncyj/packages/linutil/badge.svg?type=percent)](https://build.opensuse.org/package/show/home:solomoncyj/linutil) +[![build result](https://build.opensuse.org/projects/utilities/packages/linutil/badge.svg?type=percent)](https://build.opensuse.org/package/show/utilities/linutil)
Arch Linux From dc93e74b656d26565f00067f12d9b2e681cd7c00 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Fri, 18 Oct 2024 22:58:46 +0800 Subject: [PATCH 12/14] Update linutil-installer.sh --- .../applications-setup/linutil-installer.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index 0794b34a..06b3f120 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -34,15 +34,14 @@ installLinutil() { printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC" printf "\n" "setting up repos" - if [ "$flavor" = Tumbleweed ] - then - "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo - fi - - if [ "$flavor" = Slowroll ] - then - "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo - fi + case "$flavor" in + Tumbleweed) + "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo + ;; + Slowroll) + "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo + ;; + esac printf '%s\n' 'refreshing and installing' "$ESCALATION_TOOL" "$PACKAGER" refresh From 2af6596efdc0dfa55957de2279726bb1150bb696 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Sun, 20 Oct 2024 17:20:41 +0800 Subject: [PATCH 13/14] Update README.md --- README.md | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 8659605f..6cd1c6d0 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ curl -fsSL https://christitus.com/linuxdev | sh Linutil is also available as a package in various repositories: [![Packaging status](https://repology.org/badge/vertical-allrepos/linutil.svg)](https://repology.org/project/linutil/versions) -[![build result](https://build.opensuse.org/projects/utilities/packages/linutil/badge.svg?type=percent)](https://build.opensuse.org/package/show/utilities/linutil) +[![build result](https://build.opensuse.org/projects/openSUSE:Factory/packages/linutil/badge.svg?type=percent)](https://build.opensuse.org/package/show/openSUSE:Factory/linutil)
Arch Linux @@ -62,23 +62,10 @@ Replace `paru` with your preferred helper and `linutil` with your preferred pack
OpenSUSE - While waiting for the Package to be shipped to the Factory, you can install the application for openSuse by running: - - ### TumbleWeed - + ###just run: ```bash - zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo - zypper refresh - zypper install linutil - ``` - - ### Slowroll - - ```bash - zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo - zypper refresh - zypper install linutil - ``` + sudo zypper install linutil +```
Cargo From d718fe55ff522e61372917c66a7f9c1dd6189ab7 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Sun, 20 Oct 2024 17:22:07 +0800 Subject: [PATCH 14/14] Update linutil-installer.sh --- .../applications-setup/linutil-installer.sh | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index 06b3f120..fb005b83 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -26,25 +26,6 @@ installLinutil() { printf "%b\n" "${GREEN}Installed successfully.${RC}" ;; zypper) - printf '%s\n' 'detecting flavor' - if zypper lr | grep -Fq Tumbleweed - then flavor=Tumbleweed - else flavor=Slowroll - fi - - printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC" - printf "\n" "setting up repos" - case "$flavor" in - Tumbleweed) - "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo - ;; - Slowroll) - "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo - ;; - esac - - printf '%s\n' 'refreshing and installing' - "$ESCALATION_TOOL" "$PACKAGER" refresh "$ESCALATION_TOOL" "$PACKAGER" install linutil printf "%b\n" "${GREEN}Installed successfully.${RC}" ;;