mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-06-11 15:28:50 +00:00
fix(install): detect architecture instead of hardcoding amd64 (#227)
install.sh always downloaded the linux_amd64 binary, so arm64/386/mips machines got a binary that does not run. Detect the architecture via uname and pick the matching release artifact; releases already ship those builds.
This commit is contained in:
parent
231393c669
commit
88a00874c8
15
install.sh
15
install.sh
@ -16,7 +16,20 @@ install_deeplx(){
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo -e "DeepLX latest version: ${last_version}, Start install..."
|
echo -e "DeepLX latest version: ${last_version}, Start install..."
|
||||||
wget -q -N --no-check-certificate -O /usr/bin/deeplx https://github.com/OwO-Network/DeepLX/releases/download/${last_version}/deeplx_linux_amd64
|
|
||||||
|
arch=$(uname -m)
|
||||||
|
case "${arch}" in
|
||||||
|
x86_64 | amd64) file_arch="amd64" ;;
|
||||||
|
aarch64 | arm64) file_arch="arm64" ;;
|
||||||
|
i386 | i686) file_arch="386" ;;
|
||||||
|
mips) file_arch="mips" ;;
|
||||||
|
*)
|
||||||
|
echo -e "${red}Unsupported architecture: ${arch}${plain}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
wget -q -N --no-check-certificate -O /usr/bin/deeplx https://github.com/OwO-Network/DeepLX/releases/download/${last_version}/deeplx_linux_${file_arch}
|
||||||
|
|
||||||
chmod +x /usr/bin/deeplx
|
chmod +x /usr/bin/deeplx
|
||||||
wget -q -N --no-check-certificate -O /etc/systemd/system/deeplx.service https://raw.githubusercontent.com/OwO-Network/DeepLX/main/deeplx.service
|
wget -q -N --no-check-certificate -O /etc/systemd/system/deeplx.service https://raw.githubusercontent.com/OwO-Network/DeepLX/main/deeplx.service
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user