Skip to content

Commit

Permalink
install: add ubuntu specific dependencies
Browse files Browse the repository at this point in the history
Signed-off-by:  Eric Callahan <[email protected]>
  • Loading branch information
Arksine committed Jan 9, 2025
1 parent c79ba01 commit 73ad860
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/install-moonraker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ detect_distribution() {
PACKAGES="python3-virtualenv python3-dev libopenjp2-7 libsodium-dev zlib1g-dev"
PACKAGES="${PACKAGES} libjpeg-dev packagekit wireless-tools curl"
PACKAGES="${PACKAGES} build-essential"
elif [ ${DISTRIBUTION} = "ubuntu" ]; then
PACKAGES="python3-virtualenv python3-dev libopenjp2-7 libsodium-dev zlib1g-dev"
PACKAGES="${PACKAGES} libjpeg-dev packagekit curl build-essential"
if ( compare_version "<=" "24.04" ); then
PACKAGES="${PACKAGES} wireless-tools"
fi
if ( compare_version ">=" "24.10" ); then
PACKAGES="${PACKAGES} iw"
fi
fi
# *** AUTO GENERATED OS PACKAGE DEPENDENCIES END ***
}
Expand Down
13 changes: 13 additions & 0 deletions scripts/system-dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,18 @@
"wireless-tools",
"curl",
"build-essential"
],
"ubuntu": [
"python3-virtualenv",
"python3-dev",
"libopenjp2-7",
"libsodium-dev",
"zlib1g-dev",
"libjpeg-dev",
"packagekit",
"wireless-tools; distro_version <= 24.04",
"iw; distro_version >= 24.10",
"curl",
"build-essential"
]
}

0 comments on commit 73ad860

Please sign in to comment.