Agregar mejoras PWA y unificar workflow a 1 job
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 40s

- Agregar id único (/?app=musica), launch_handler, handle_links y url_handlers
- Unificar workflow de 2 jobs (build + deploy) a 1 solo job
- Workaround para bug de Gitea que solo ejecuta el primer job
This commit is contained in:
2025-10-17 03:26:28 -06:00
parent 41f944f811
commit 25aace816f
2 changed files with 12 additions and 13 deletions

View File

@@ -5,8 +5,8 @@ on:
branches: [ main ] branches: [ main ]
jobs: jobs:
#───────────────── build & push ───────────────── #───────────────── build, push & deploy (unified) ─────────────────
build: build-and-deploy:
runs-on: docker runs-on: docker
env: env:
REG: gitea.nucleoriofrio.com/nucleo000 REG: gitea.nucleoriofrio.com/nucleo000
@@ -25,17 +25,6 @@ jobs:
docker push $REG/repodructor:${{ github.sha }} docker push $REG/repodructor:${{ github.sha }}
docker push $REG/repodructor:latest docker push $REG/repodructor:latest
#───────────────── deploy ─────────────────
deploy:
needs: build
runs-on: docker
env:
REG: gitea.nucleoriofrio.com/nucleo000
steps:
- uses: actions/checkout@v3
- name: Login to registry
run: docker login gitea.nucleoriofrio.com -u nucleo000 -p 7bc7b2fcd283bd6a251bef3ede368b7f897c919d
- name: Info about music directory - name: Info about music directory
run: | run: |
echo " Music directory expected at: /srv/repodructor/musica" echo " Music directory expected at: /srv/repodructor/musica"

View File

@@ -183,6 +183,7 @@ export default defineNuxtConfig({
navigateFallback: '/' navigateFallback: '/'
}, },
manifest: { manifest: {
id: '/?app=musica',
name: 'RepoDructor Music Player', name: 'RepoDructor Music Player',
short_name: 'RepoDructor', short_name: 'RepoDructor',
description: 'A beautiful glassmorphism music player for your local network', description: 'A beautiful glassmorphism music player for your local network',
@@ -195,8 +196,17 @@ export default defineNuxtConfig({
categories: ['music', 'entertainment'], categories: ['music', 'entertainment'],
lang: 'es', lang: 'es',
dir: 'ltr', dir: 'ltr',
// Control de ventanas - mantener una sola ventana
launch_handler: {
client_mode: 'navigate-existing'
},
// Capturar enlaces dentro de la app // Capturar enlaces dentro de la app
capture_links: 'existing-client-navigate', capture_links: 'existing-client-navigate',
// URL handling - nuevo estándar para manejar links a esta PWA
handle_links: 'preferred',
url_handlers: [
{ origin: 'https://musica.nucleoriofrio.com' }
],
icons: [ icons: [
{ {
src: '/logo-192.png', src: '/logo-192.png',