Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions tkginstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,24 @@ _linux_install() {
onefetch --no-art --http-url --number-of-authors 6
fi

# Build and install
${TKG_ECHO} "${TKG_GREEN}${TKG_LINE}${TKG_BREAK} 🏗️ Building and installing Linux-TKG package, this may take a while... ⏳${TKG_BREAK}${TKG_YELLOW} 💡 Tip: If you adjust the config file, you can skip prompted questions during installation.${TKG_BREAK}${TKG_GREEN}${TKG_LINE}${TKG_RESET}"
makepkg -si || {
${TKG_ECHO} "${TKG_RED}${TKG_BOLD} ❌ Error building: linux-tkg${TKG_RESET}"
return 1
}
# Build and install based on distribution
local distro_id="${DISTRO_ID,,}"
local distro_like="${DISTRO_ID_LIKE,,}"

if [[ "${distro_id}" =~ ^(arch|cachyos|manjaro|endeavouros)$ || "${distro_like}" == *"arch"* ]]; then
${TKG_ECHO} "${TKG_GREEN}${TKG_LINE}${TKG_BREAK} 🏗️ Building and installing Linux-TKG package with makepkg... ⏳${TKG_BREAK}${TKG_YELLOW} 💡 Tip: Adjust customization.cfg to skip prompts.${TKG_BREAK}${TKG_GREEN}${TKG_LINE}${TKG_RESET}"
makepkg -si || {
${TKG_ECHO} "${TKG_RED}${TKG_BOLD} ❌ Error building: linux-tkg${TKG_RESET}"
return 1
}
else
${TKG_ECHO} "${TKG_GREEN}${TKG_LINE}${TKG_BREAK} 🏗️ Building Linux-TKG via install.sh... ⏳${TKG_BREAK}${TKG_YELLOW} 💡 Tip: Review customization.cfg before continuing.${TKG_BREAK}${TKG_GREEN}${TKG_LINE}${TKG_RESET}"
chmod +x install.sh 2>/dev/null || true
./install.sh install || {
${TKG_ECHO} "${TKG_RED}${TKG_BOLD} ❌ Error running install.sh for linux-tkg${TKG_RESET}"
return 1
}
fi
}

# 🖥️ Nvidia-TKG installation
Expand Down