Track shared pack build scripts, plugin metadata and documentation

This commit is contained in:
2026-09-05 21:11:04 +03:00
parent bc1dc768f3
commit e001c6c4c3
8 changed files with 290 additions and 0 deletions
Vendored
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env sh
set -eu
GRADLE_VERSION="9.7.1"
APP_HOME=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
DIST_ROOT="${HOME}/.gradle/pixelbanners-bootstrap"
DIST_DIR="${DIST_ROOT}/gradle-${GRADLE_VERSION}"
DIST_ZIP="${DIST_ROOT}/gradle-${GRADLE_VERSION}-bin.zip"
GRADLE_BIN="${DIST_DIR}/bin/gradle"
if [ ! -x "$GRADLE_BIN" ]; then
mkdir -p "$DIST_ROOT"
echo "[PixelBanners] Gradle ${GRADLE_VERSION} not found. Downloading..."
if command -v curl >/dev/null 2>&1; then
curl -fL "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" -o "$DIST_ZIP"
elif command -v wget >/dev/null 2>&1; then
wget -O "$DIST_ZIP" "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip"
else
echo "curl or wget is required." >&2
exit 1
fi
echo "[PixelBanners] Extracting Gradle..."
unzip -q -o "$DIST_ZIP" -d "$DIST_ROOT"
rm -f "$DIST_ZIP"
fi
exec "$GRADLE_BIN" -p "$APP_HOME" "$@"