New deploy method
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 16s

This commit is contained in:
0d0 2025-02-23 06:05:06 +01:00
parent 631b9e44f0
commit 109a668413
3 changed files with 22 additions and 8 deletions

18
scripts/install.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/bash
PROJECT_ROOT=$1
if [ -z ${PROJECT_ROOT+x} ]; then
echo "error no project_root set"
exit 1
fi
mkdir -p "${PROJECT_ROOT}"
cd "${PROJECT_ROOT}" || exit 1
rm -rf ./*
wget https://git.pweapon.org/odo/dl.emersa.it/releases/download/latest/build.tar.gz
tar -xvf build.tar.gz -C .
rm build.tar.gz
npm ci
npm run download-yt-dlp
echo "YTDLP_PATH=$(readlink -f yt-dlp)" >>.env