diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 809b2c2..2c3b356 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -5,8 +5,8 @@ on: branches: [ main ] jobs: -#───────────────── build & push ───────────────── - build: +#───────────────── build, push & deploy (unified) ───────────────── + build-and-deploy: runs-on: docker env: REG: gitea.nucleoriofrio.com/nucleo000 @@ -25,17 +25,6 @@ jobs: docker push $REG/repodructor:${{ github.sha }} 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 run: | echo "ℹ️ Music directory expected at: /srv/repodructor/musica" diff --git a/nuxt.config.ts b/nuxt.config.ts index f75e31f..a736b14 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -183,6 +183,7 @@ export default defineNuxtConfig({ navigateFallback: '/' }, manifest: { + id: '/?app=musica', name: 'RepoDructor Music Player', short_name: 'RepoDructor', description: 'A beautiful glassmorphism music player for your local network', @@ -195,8 +196,17 @@ export default defineNuxtConfig({ categories: ['music', 'entertainment'], lang: 'es', dir: 'ltr', + // Control de ventanas - mantener una sola ventana + launch_handler: { + client_mode: 'navigate-existing' + }, // Capturar enlaces dentro de la app 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: [ { src: '/logo-192.png',