feature/manual_and_auto_classpath_option #1
22
install
22
install
@ -12,7 +12,9 @@ function fail() {
|
|||||||
|
|
||||||
# platform IDs
|
# platform IDs
|
||||||
LIN=linux
|
LIN=linux
|
||||||
|
LIN_URL=https://git.kirby-link.dd-dns.de/attachments/f701fbff-c58b-4aac-91e3-47efda1fc760
|
||||||
MAC=macos
|
MAC=macos
|
||||||
|
MAC_URL=https://git.kirby-link.dd-dns.de/attachments/b09c6469-406a-4dd1-b5e8-1294a3aabf0f
|
||||||
WIN=windows
|
WIN=windows
|
||||||
|
|
||||||
# returns this platform ID
|
# returns this platform ID
|
||||||
@ -32,20 +34,14 @@ function get_this_platform() {
|
|||||||
THIS_PLATFORM=$(get_this_platform)
|
THIS_PLATFORM=$(get_this_platform)
|
||||||
|
|
||||||
# fetches latest release download link for the platform
|
# fetches latest release download link for the platform
|
||||||
function get_latest_warp_link() {
|
function get_warp_link() {
|
||||||
local this_platform=$1
|
local this_platform=$1
|
||||||
local info
|
|
||||||
info=$(curl -fsSL https://git.kirby-link.dd-dns.de/api/v1/repos/public/warp/releases)
|
if [ "$this_platform" = "$LIN" ]; then
|
||||||
if [[ $? != 0 ]]; then
|
echo "$LIN_URL"
|
||||||
echo "Error: Failed to get information about releases" >&2
|
else
|
||||||
fail
|
echo "$MAC_URL"
|
||||||
fi
|
fi
|
||||||
echo "$info" \
|
|
||||||
| grep "browser_download_url" \
|
|
||||||
| grep "$this_platform-x64.warp-packer" \
|
|
||||||
| head -n 1 \
|
|
||||||
| awk '{print $2}' \
|
|
||||||
| sed -e 's/"//g'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# downloads and installs single binary
|
# downloads and installs single binary
|
||||||
@ -94,7 +90,7 @@ function get_missing_deps() {
|
|||||||
WARP4J_LINK="https://git.kirby-link.dd-dns.de/public/warp4j/raw/branch/feature/manual_and_auto_classpath_option/warp4j"
|
WARP4J_LINK="https://git.kirby-link.dd-dns.de/public/warp4j/raw/branch/feature/manual_and_auto_classpath_option/warp4j"
|
||||||
|
|
||||||
echo "Getting information about warp-packer releases..."
|
echo "Getting information about warp-packer releases..."
|
||||||
WARP_LINK=$(get_latest_warp_link $THIS_PLATFORM)
|
WARP_LINK=$(get_warp_link $THIS_PLATFORM)
|
||||||
|
|
||||||
MISSING_DEPS=$(get_missing_deps)
|
MISSING_DEPS=$(get_missing_deps)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user