Squashed commit message
Some checks are pending
Telegram Mini App Shop Builder / Compute version metadata (push) Waiting to run
Telegram Mini App Shop Builder / Run Frontend tests (push) Waiting to run
Telegram Mini App Shop Builder / Run Backend tests (push) Waiting to run
Telegram Mini App Shop Builder / Run PHP_CodeSniffer (push) Waiting to run
Telegram Mini App Shop Builder / Build module. (push) Blocked by required conditions
Telegram Mini App Shop Builder / release (push) Blocked by required conditions

This commit is contained in:
2026-03-11 22:08:41 +03:00
commit 3cc82e45f0
585 changed files with 65605 additions and 0 deletions

35
scripts/download_oc_store.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
# The script downloads and unzip acmeShop.
# Should be executed from the project root folder.
set -e
ACMESHOP_VERSION=v3.0.3.7
CACHE_DIR=.cache
echo "👽 Downloading acmeShop ${ACMESHOP_VERSION}..."
DOWNLOAD_URL="https://github.com/acmeShop/acmeShop/archive/refs/tags/$ACMESHOP_VERSION.zip"
FILE_PATH="$CACHE_DIR/$ACMESHOP_VERSION.zip"
if [ ! -f "$FILE_PATH" ]; then
mkdir -p "$CACHE_DIR"
wget -P "$CACHE_DIR" "$DOWNLOAD_URL"
else
echo "😎 Get file from cache: $FILE_PATH"
fi
echo "🗃 Unzipping..."
rm -rf src/*
unzip -q "$FILE_PATH" -d ./src
SOURCE_DIR=src/acmeShop-${ACMESHOP_VERSION//v/}
rsync -a $SOURCE_DIR/* ./src
rm -rf $SOURCE_DIR
chmod -R 775 src
echo "✅ Completed."