mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-06-26 12:59:28 -04:00
Notable changes - Single cpmfile - version/min_version/git_version have been fixed and replaced with version and min_version - Docs rewrite - Legacy options are gone - Fixed update/version commands Interactive adder is nonfunctional right now, will rewrite later Signed-off-by: crueter <crueter@eden-emu.dev>
27 lines
630 B
Bash
Executable file
27 lines
630 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
# SPDX-FileCopyrightText: Copyright 2026 crueter
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
# Get the download URL for a package
|
|
|
|
if [ "$URL" != "null" ]; then
|
|
DOWNLOAD="$URL"
|
|
elif [ "$REPO" != "null" ]; then
|
|
GIT_URL="https://$GIT_HOST/$REPO"
|
|
|
|
if [ "$SHA" != "null" ]; then
|
|
DOWNLOAD="${GIT_URL}/archive/${SHA}.tar.gz"
|
|
elif [ "$TAG" != "null" ]; then
|
|
if [ "$ARTIFACT" != "null" ]; then
|
|
DOWNLOAD="${GIT_URL}/releases/download/${TAG}/${ARTIFACT}"
|
|
else
|
|
DOWNLOAD="${GIT_URL}/archive/refs/tags/${TAG}.tar.gz"
|
|
fi
|
|
fi
|
|
else
|
|
echo "!! No repo or URL defined for $PACKAGE_NAME"
|
|
exit 1
|
|
fi
|
|
|
|
export DOWNLOAD
|