Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bin/functions.sh): add Fedora support #417

Merged
merged 3 commits into from
May 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 29 additions & 19 deletions bin/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -560,28 +560,38 @@ function first_time_experience_setup() {
echo "Installing $(host_os) dependencies..."
if [[ "$package_manager" == "apt install" ]]; then
log_and_run sudo apt update || return $?
log_and_run sudo apt install -y \
git \
libwebkit2gtk-4.1-dev \
build-essential \
libc++abi-14-dev \
libc++-14-dev \
pkg-config \
clang-14 \
log_and_run sudo apt install -y \
git \
libwebkit2gtk-4.1-dev \
build-essential \
libc++abi-14-dev \
libc++-14-dev \
pkg-config \
clang-14 \
|| return $?
elif [[ "$package_manager" == "pacman -S" ]]; then
log_and_run sudo pacman -Syu \
git \
webkit2gtk-4.1 \
base-devel \
libc++abi-14 \
libc++1-14 \
clang-14 \
pkgconf \
log_and_run sudo pacman -Syu \
git \
webkit2gtk-4.1 \
base-devel \
libc++abi-14 \
libc++1-14 \
clang-14 \
pkgconf \
|| return $?
elif [[ "$package_manager" == "dnf install" ]]; then
log_and_run sudo dnf install \
make \
automake \
gcc \
gcc-c++ \
kernel-devel \
clang14-devel \
clang14-libs \
libcxx-devel \
libcxxabi-devel \
webkit2gtk4.1-devel \
|| return $?
elif [[ "$packege_manager" == "dnf install" ]]; then
echo "warn - dnf package manager is not suppored yet. Please try to install from npm or from source."
exit 1
elif [[ "$package_manager" == "yum install" ]]; then
echo "warn - yum package manager is not suppored yet. Please try to install from npm or from source."
exit 1
Expand Down