From 3d2f5b4adfa3dfa1a598cea49fbce57ef0579fdc Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 20 Jul 2023 14:11:33 +0000 Subject: [PATCH] Update scripts --- get-xpipe.sh | 14 ++++++++++++++ setup.sh | 2 ++ 2 files changed, 16 insertions(+) diff --git a/get-xpipe.sh b/get-xpipe.sh index 5d4780a3..a7149931 100755 --- a/get-xpipe.sh +++ b/get-xpipe.sh @@ -186,6 +186,20 @@ return 0 2>/dev/null check_architecture "$(uname -m)" || exit 1 +if ! [ -x "$(command -v apt)" ] && ! [ -x "$(command -v rpm)" ] && [ -x "$(command -v pacman)" ]; then + info "Installing from AUR" + git clone "https://aur.archlinux.org/xpipe.git" /tmp/xpipe_aur + cd "/tmp/xpipe_aur" + pkgbuild -si + exit 0 +fi + +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 XPipe?" + info "https://github.com/xpipe-io/xpipe#portable" + exit 1 +fi + repo="https://github.com/xpipe-io/xpipe" version= while getopts 'sv:' OPTION; do diff --git a/setup.sh b/setup.sh index 5b2a0b1c..2981f49e 100755 --- a/setup.sh +++ b/setup.sh @@ -12,3 +12,5 @@ fi; sdk install java 20.0.1-graalce sdk default java 20.0.1-graalce + +./gradlew app:run