feat(install-script): Install packages using npm

- Use npm to install packages
- Move packages from brew to npm where available
- fix: use `brew info` to search exact package names
- chore: better comments
This commit is contained in:
Pratik Tripathy
2025-11-23 00:15:45 +05:30
parent 595858ba25
commit 24b2aacd92
8 changed files with 103 additions and 24 deletions

View File

@@ -26,16 +26,18 @@ install_flatpak_packages() {
esac
# Check if the package exists in the flatpak repository
if flatpak search --columns=application "$flatpak_package" 2> /dev/null | grep -q "^$flatpak_package\$"; then
if flatpak search --columns=application "$flatpak_package" 2>/dev/null | grep -q "^$flatpak_package\$"; then
echo "Available: $flatpak_package"
found_packages="$found_packages $flatpak_package"
else
not_found_packages="$not_found_packages $flatpak_package"
echo "Unavailable: $flatpak_package"
fi
done < "$FLATPAK_PACKAGE_FILE"
done <"$FLATPAK_PACKAGE_FILE"
# Install available flatpak packages
echo
echo "Installing available flatpak packages..."
# shellcheck disable=SC2086
if ! flatpak install -y --noninteractive $found_packages; then
exit 1
fi