mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Fix install script for macos
This commit is contained in:
parent
8f49c35aca
commit
368612b70f
1 changed files with 18 additions and 16 deletions
34
get-xpipe.sh
34
get-xpipe.sh
|
@ -206,24 +206,26 @@ while getopts 'sv:' OPTION; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if ! [ -x "$(command -v apt)" ] && ! [ -x "$(command -v rpm)" ] && [ -x "$(command -v pacman)" ]; then
|
if [ "$(uname -s)" = "Linux" ]; then
|
||||||
info "Installing from AUR at $aur"
|
if ! [ -x "$(command -v apt)" ] && ! [ -x "$(command -v rpm)" ] && [ -x "$(command -v pacman)" ]; then
|
||||||
rm -rf "/tmp/xpipe_aur" || true
|
info "Installing from AUR at $aur"
|
||||||
if [[ -z "$version" ]] ; then
|
rm -rf "/tmp/xpipe_aur" || true
|
||||||
git clone "$aur" /tmp/xpipe_aur
|
if [[ -z "$version" ]] ; then
|
||||||
else
|
git clone "$aur" /tmp/xpipe_aur
|
||||||
git clone --branch "$version" "$aur" /tmp/xpipe_aur
|
else
|
||||||
|
git clone --branch "$version" "$aur" /tmp/xpipe_aur
|
||||||
|
fi
|
||||||
|
cd "/tmp/xpipe_aur"
|
||||||
|
makepkg -si
|
||||||
|
launch
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
cd "/tmp/xpipe_aur"
|
|
||||||
makepkg -si
|
|
||||||
launch
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! [ -x "$(command -v apt)" ] && ! [ -x "$(command -v rpm)" ] && ! [ -x "$(command -v pacman)" ]; then
|
if ! [ -x "$(command -v apt)" ] && ! [ -x "$(command -v rpm)" ] && ! [ -x "$(command -v pacman)" ]; then
|
||||||
info "Installation is not supported on this system (no apt, rpm, pacman). Can you try a portable version of $product_name?"
|
info "Installation is not supported on this system (no apt, rpm, pacman). Can you try a portable version of $product_name?"
|
||||||
info "https://github.com/xpipe-io/xpipe#portable"
|
info "https://github.com/xpipe-io/xpipe#portable"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
download_archive="$(
|
download_archive="$(
|
||||||
|
|
Loading…
Reference in a new issue