mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-04-20 19:03:08 +01:00
Compare commits
4 Commits
72975cfe46
...
111d267f45
Author | SHA1 | Date | |
---|---|---|---|
|
111d267f45 | ||
|
232b45e6a6 | ||
|
8f92b9c74f | ||
|
34d832947d |
6
Cargo.lock
generated
6
Cargo.lock
generated
@ -399,7 +399,7 @@ checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
|
||||
|
||||
[[package]]
|
||||
name = "linutil_core"
|
||||
version = "25.1.10"
|
||||
version = "25.2.13"
|
||||
dependencies = [
|
||||
"ego-tree",
|
||||
"include_dir",
|
||||
@ -411,7 +411,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "linutil_tui"
|
||||
version = "25.1.10"
|
||||
version = "25.2.13"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"linutil_core",
|
||||
@ -1299,7 +1299,7 @@ checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904"
|
||||
|
||||
[[package]]
|
||||
name = "xtask"
|
||||
version = "25.1.10"
|
||||
version = "25.2.13"
|
||||
dependencies = [
|
||||
"linutil_core",
|
||||
]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[workspace.package]
|
||||
license = "MIT"
|
||||
version = "25.1.10"
|
||||
version = "25.2.13"
|
||||
edition = "2021"
|
||||
|
||||
[workspace]
|
||||
|
@ -5,44 +5,7 @@
|
||||
installBrave() {
|
||||
if ! command_exists com.brave.Browser && ! command_exists brave; then
|
||||
printf "%b\n" "${YELLOW}Installing Brave...${RC}"
|
||||
case "$PACKAGER" in
|
||||
apt-get|nala)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y curl
|
||||
"$ESCALATION_TOOL" curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" | "$ESCALATION_TOOL" tee /etc/apt/sources.list.d/brave-browser-release.list
|
||||
"$ESCALATION_TOOL" "$PACKAGER" update
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y brave-browser
|
||||
;;
|
||||
zypper)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y curl
|
||||
"$ESCALATION_TOOL" rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
|
||||
"$ESCALATION_TOOL" "$PACKAGER" addrepo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
|
||||
"$ESCALATION_TOOL" "$PACKAGER" refresh
|
||||
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install brave-browser
|
||||
;;
|
||||
pacman)
|
||||
"$AUR_HELPER" -S --needed --noconfirm brave-bin
|
||||
;;
|
||||
dnf)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y dnf-plugins-core
|
||||
dnf_version=$(dnf --version | head -n 1 | cut -d '.' -f 1)
|
||||
if [ "$dnf_version" -eq 4 ]; then
|
||||
"$ESCALATION_TOOL" "$PACKAGER" config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
|
||||
else
|
||||
"$ESCALATION_TOOL" "$PACKAGER" config-manager addrepo --from-repofile=https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
|
||||
fi
|
||||
"$ESCALATION_TOOL" rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y brave-browser
|
||||
;;
|
||||
apk)
|
||||
checkFlatpak
|
||||
flatpak install -y flathub com.brave.Browser
|
||||
;;
|
||||
*)
|
||||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
curl -fsS https://dl.brave.com/install.sh | sh
|
||||
else
|
||||
printf "%b\n" "${GREEN}Brave Browser is already installed.${RC}"
|
||||
fi
|
||||
@ -50,5 +13,4 @@ installBrave() {
|
||||
|
||||
checkEnv
|
||||
checkEscalationTool
|
||||
checkAURHelper
|
||||
installBrave
|
@ -22,7 +22,7 @@ tui-term = { version = "0.2.0", default-features = false }
|
||||
time = { version = "0.3.36", features = ["formatting", "local-offset", "macros"], default-features = false }
|
||||
unicode-width = { version = "0.2.0", default-features = false }
|
||||
rand = { version = "0.8.5", optional = true }
|
||||
linutil_core = { version = "25.1.10", path = "../core" }
|
||||
linutil_core = { version = "25.2.13", path = "../core" }
|
||||
tree-sitter-highlight = "0.24.4"
|
||||
tree-sitter-bash = "0.23.3"
|
||||
nix = { version = "0.29.0", features = [ "user" ] }
|
||||
|
Loading…
x
Reference in New Issue
Block a user