From d111eee28a6120954137f67c986d41ebf92df2f6 Mon Sep 17 00:00:00 2001 From: alwaysmesmerizingyou Date: Fri, 14 Aug 2026 20:29:00 -0700 Subject: [PATCH] remove live-api dependency and update release config for direct exe link --- .gitlab-ci.yml | 23 +++++++++++++---------- main.js | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b5ef72..a7276a2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -101,24 +101,24 @@ build: - | if (Test-Path "update-payload.zip") { - Write-Host "Build artifact verified: update-payload.zip exists" + Write-Host "✓ Build artifact verified: update-payload.zip exists" $size = (Get-Item update-payload.zip).Length Write-Host " Size: $size bytes" } else { - Write-Error "Build artifact missing: update-payload.zip" + Write-Error "✗ Build artifact missing: update-payload.zip" exit 1 } if (Test-Path "manifest.json") { - Write-Host "Manifest file verified" + Write-Host "✓ Manifest file verified" Get-Content manifest.json | ConvertFrom-Json | ConvertTo-Json -Depth 10 } else { - Write-Error "Manifest file missing" + Write-Error "✗ Manifest file missing" exit 1 } if (Test-Path "validation-report.json") { - Write-Host "Validation report verified" + Write-Host "✓ Validation report verified" } - Write-Host "Packaging Electron application..." @@ -127,6 +127,8 @@ build: - | Write-Host "Publishing Release to GitLab..." $versionTag = "v$env:CI_PIPELINE_IID" + $exeFile = (Get-ChildItem dist/*.exe | Select-Object -First 1).Name + $exeUrl = $exeFile -replace " ", "%20" $releaseBody = @{ name = "Vyla Home Release $versionTag" @@ -135,6 +137,11 @@ build: ref = "$env:CI_COMMIT_SHA" assets = @{ links = @( + @{ + name = "$exeFile" + url = "$env:CI_PROJECT_URL/-/jobs/artifacts/$env:CI_COMMIT_BRANCH/raw/dist/$exeUrl?job=build" + link_type = "package" + }, @{ name = "update-payload.zip" url = "$env:CI_PROJECT_URL/-/jobs/artifacts/$env:CI_COMMIT_BRANCH/raw/update-payload.zip?job=build" @@ -142,10 +149,6 @@ build: @{ name = "manifest.json" url = "$env:CI_PROJECT_URL/-/jobs/artifacts/$env:CI_COMMIT_BRANCH/raw/manifest.json?job=build" - }, - @{ - name = "Download All Build Artifacts (including Windows Installer)" - url = "$env:CI_PROJECT_URL/-/jobs/artifacts/$env:CI_COMMIT_BRANCH/download?job=build" } ) } @@ -158,7 +161,7 @@ build: try { $createdRelease = Invoke-RestMethod -Uri "https://gitlab.com/api/v4/projects/$env:CI_PROJECT_ID/releases" -Method Post -Headers $releaseHeaders -Body $releaseBody - Write-Host "Release successfully published: $($createdRelease.tag_name)" + Write-Host "✓ Release successfully published: $($createdRelease.tag_name)" } catch { Write-Warning "Release creation failed: $($_.Exception.Message)" exit 1 diff --git a/main.js b/main.js index 30a9fc8..55678c0 100644 --- a/main.js +++ b/main.js @@ -611,7 +611,7 @@ button:active { }); playerExpressServer = playerExpressApp.listen(3001); - await serviceManager.waitForPorts([3000, 3001, 7860, 5000]); + await serviceManager.waitForPorts([3000, 3001, 7860]); const healthChecks = [ { port: 3001, name: 'player' },