Add managed catalog sync and player UX improvements

This commit is contained in:
2026-04-29 13:49:16 +02:00
parent b866845b6a
commit c8f8c76e8a
21 changed files with 71429 additions and 148 deletions

36
sync.sh
View File

@@ -1,28 +1,42 @@
#!/bin/bash
localFolder='/mnt/d/Sites/RadioPlayer/web/dist/.'
set -euo pipefail
repoRoot='/mnt/d/Sites/RadioPlayer/web'
localDistFolder="$repoRoot/dist/."
remoteFolder='/opt/www/virtual/RadioPlayer/'
remoteServer='klevze@server.klevze.si'
run_build() {
if grep -qi microsoft /proc/version 2>/dev/null && command -v powershell.exe >/dev/null 2>&1; then
local windowsRepoRoot
windowsRepoRoot="$(wslpath -w "$repoRoot")"
powershell.exe -NoProfile -Command "Set-Location -LiteralPath '$windowsRepoRoot'; npm run build"
return
fi
npm run build
}
run_build
if [[ "${SKIP_DEPLOY:-0}" == "1" ]]; then
echo "Build completed; skipping deploy because SKIP_DEPLOY=1"
exit 0
fi
rsync -avz \
--chmod=D755,F644 \
--exclude ".phpintel/" \
--exclude "bootstrap/cache/" \
--exclude ".env" \
--exclude "public/hot" \
--exclude "public/files" \
--exclude "node_modules" \
--exclude "aritmija_devTemplate" \
--exclude "web82/" \
--exclude "storage/" \
--exclude "oldSite/" \
--exclude "vendor" \
--exclude "resources/lang" \
--exclude ".git/" \
--exclude ".gemini" \
--exclude ".github" \
--exclude ".vscode" \
-e ssh \
$localFolder \
$localDistFolder \
$remoteServer:$remoteFolder/
echo "Deployed to $remoteServer:$remoteFolder"