feat(installer): download rc with --rc #123
@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
ABRA_VERSION="0.3.0-alpha"
|
ABRA_VERSION="0.3.0-alpha"
|
||||||
ABRA_RELEASE_URL="https://git.coopcloud.tech/api/v1/repos/coop-cloud/abra/releases/tags/$ABRA_VERSION"
|
ABRA_RELEASE_URL="https://git.coopcloud.tech/api/v1/repos/coop-cloud/abra/releases/tags/$ABRA_VERSION"
|
||||||
|
RC_VERSION="0.3.1-rc1"
|
||||||
|
RC_VERSION_URL="https://git.coopcloud.tech/api/v1/repos/coop-cloud/abra/releases/tags/$RC_VERSION"
|
||||||
|
|
||||||
|
for arg in "$@"; do
|
||||||
|
if [ "$arg" == "--rc" ]; then
|
||||||
|
ABRA_VERSION="$RC_VERSION"
|
||||||
|
ABRA_RELEASE_URL="$RC_VERSION_URL"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
function show_banner {
|
function show_banner {
|
||||||
echo ""
|
echo ""
|
||||||
@ -35,6 +44,7 @@ function install_abra_release {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# FIXME: support different architectures
|
# FIXME: support different architectures
|
||||||
PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m)
|
PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m)
|
||||||
FILENAME="abra_"$ABRA_VERSION"_"$PLATFORM""
|
FILENAME="abra_"$ABRA_VERSION"_"$PLATFORM""
|
||||||
@ -79,6 +89,7 @@ function install_abra_release {
|
|||||||
echo "abra installed to $HOME/.local/bin/abra"
|
echo "abra installed to $HOME/.local/bin/abra"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function run_installation {
|
function run_installation {
|
||||||
show_banner
|
show_banner
|
||||||
install_abra_release
|
install_abra_release
|
||||||
|
Loading…
x
Reference in New Issue
Block a user