mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-09 19:57:20 -05:00
remove live-api dependency and update release config for direct exe link
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user