mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-13 05:37:21 -05:00
simplify GitLab pipeline and remove credential helper
This commit is contained in:
@@ -39,21 +39,12 @@ build:
|
||||
AUTH_PROXY_DEV_BYPASS_AUTH: $DEV_BYPASS_AUTH
|
||||
AUTH_PROXY_PROXY_VITE_API_KEY: $PROXY_VITE_API_KEY
|
||||
GIT_TERMINAL_PROMPT: "0"
|
||||
|
||||
ELECTRON_CACHE: "$CI_PROJECT_DIR/.electron-cache"
|
||||
npm_config_cache: "$CI_PROJECT_DIR/.npm"
|
||||
|
||||
cache:
|
||||
key: "vyla-home-cache-v1"
|
||||
key:
|
||||
files:
|
||||
- package-lock.json
|
||||
paths:
|
||||
- .npm/
|
||||
- .electron-cache/
|
||||
- last-shas.json
|
||||
|
||||
before_script:
|
||||
- git config --global credential.helper ""
|
||||
- npm config set loglevel error
|
||||
|
||||
- node_modules/
|
||||
script:
|
||||
- npm ci
|
||||
|
||||
@@ -111,6 +102,8 @@ build:
|
||||
- |
|
||||
if (Test-Path "update-payload.zip") {
|
||||
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"
|
||||
exit 1
|
||||
@@ -118,11 +111,16 @@ build:
|
||||
|
||||
if (Test-Path "manifest.json") {
|
||||
Write-Host "Manifest file verified"
|
||||
Get-Content manifest.json | ConvertFrom-Json | ConvertTo-Json -Depth 10
|
||||
} else {
|
||||
Write-Error "Manifest file missing"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if (Test-Path "validation-report.json") {
|
||||
Write-Host "Validation report verified"
|
||||
}
|
||||
|
||||
- Write-Host "Packaging Electron application..."
|
||||
- npm run dist
|
||||
|
||||
|
||||
Reference in New Issue
Block a user