mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-21 17:45:40 -05:00
Updated
This commit is contained in:
@@ -49,7 +49,7 @@ build:
|
|||||||
- npm ci
|
- npm ci
|
||||||
|
|
||||||
- |
|
- |
|
||||||
$repos = @('frontend', 'player', 'stream-api', 'live-api-streampk', 'auth-proxy')
|
$repos = @('frontend', 'player', 'stream-api'', 'auth-proxy')
|
||||||
$last = @{}
|
$last = @{}
|
||||||
if (Test-Path "last-shas.json") {
|
if (Test-Path "last-shas.json") {
|
||||||
$last = Get-Content last-shas.json | ConvertFrom-Json -AsHashtable
|
$last = Get-Content last-shas.json | ConvertFrom-Json -AsHashtable
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ const AdmZip = require('adm-zip');
|
|||||||
const { execSync } = require('child_process');
|
const { execSync } = require('child_process');
|
||||||
|
|
||||||
const BUILD_DIR = path.join(__dirname, 'dist-build');
|
const BUILD_DIR = path.join(__dirname, 'dist-build');
|
||||||
const REPOS = ['frontend', 'player', 'auth-proxy', 'stream-api', 'live-api-streampk'];
|
const REPOS = ['frontend', 'player', 'auth-proxy', 'stream-api'];
|
||||||
|
|
||||||
const TEMP_EXTRACT_DIR = path.join(__dirname, 'temp-validation-extract');
|
const TEMP_EXTRACT_DIR = path.join(__dirname, 'temp-validation-extract');
|
||||||
|
|
||||||
@@ -17,7 +17,6 @@ const REPO_CONFIG = {
|
|||||||
'player': { name: 'player', branch: 'main' },
|
'player': { name: 'player', branch: 'main' },
|
||||||
'auth-proxy': { name: 'auth-proxy', branch: 'main' },
|
'auth-proxy': { name: 'auth-proxy', branch: 'main' },
|
||||||
'stream-api': { name: 'stream-api', branch: 'main' },
|
'stream-api': { name: 'stream-api', branch: 'main' },
|
||||||
'live-api-streampk': { name: 'live-api-streampk', branch: 'main' }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function getGitLabToken() {
|
function getGitLabToken() {
|
||||||
@@ -230,7 +229,6 @@ function validatePayload(zipPath) {
|
|||||||
'player/index.html',
|
'player/index.html',
|
||||||
'auth-proxy/server.js',
|
'auth-proxy/server.js',
|
||||||
'stream-api/server.js',
|
'stream-api/server.js',
|
||||||
'live-api-streampk/server.js',
|
|
||||||
'frontend/index.html'
|
'frontend/index.html'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,5 @@
|
|||||||
"PROXY_STREAMS": "true",
|
"PROXY_STREAMS": "true",
|
||||||
"ENABLE_DEBUG_ROUTE": "true",
|
"ENABLE_DEBUG_ROUTE": "true",
|
||||||
"BYPASS_AUTH": "true"
|
"BYPASS_AUTH": "true"
|
||||||
},
|
|
||||||
"live-api-streampk": {
|
|
||||||
"PORT": "5000"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -49,6 +49,5 @@
|
|||||||
"replace": "http://localhost:3001"
|
"replace": "http://localhost:3001"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"stream-api": [],
|
"stream-api": []
|
||||||
"live-api-streampk": []
|
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,6 @@ const REPOS = {
|
|||||||
frontend: { branch: 'main' },
|
frontend: { branch: 'main' },
|
||||||
player: { branch: 'main' },
|
player: { branch: 'main' },
|
||||||
'stream-api': { branch: 'main' },
|
'stream-api': { branch: 'main' },
|
||||||
'live-api-streampk': { branch: 'main' },
|
|
||||||
'auth-proxy': { branch: 'main' }
|
'auth-proxy': { branch: 'main' }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"stream-api": "5eb845865e6633511b2f68a0e1615b2391ddca6e",
|
"stream-api": "5eb845865e6633511b2f68a0e1615b2391ddca6e",
|
||||||
"live-api-streampk": "6f2f3932360624b473c55becb7a5354b9a0fa804",
|
|
||||||
"auth-proxy": "7660a5a252554af55bf84da219b63a76322d8b85",
|
"auth-proxy": "7660a5a252554af55bf84da219b63a76322d8b85",
|
||||||
"player": "4b3a4a6523dbf019abe8f9ec02e689e5d4e3b672",
|
"player": "4b3a4a6523dbf019abe8f9ec02e689e5d4e3b672",
|
||||||
"frontend": "ecab7ccd9fc2011bb78ac37f5b2a478ff25d162d"
|
"frontend": "ecab7ccd9fc2011bb78ac37f5b2a478ff25d162d"
|
||||||
|
|||||||
2
main.js
2
main.js
@@ -601,7 +601,6 @@ button:active {
|
|||||||
await serviceManager.startServices([
|
await serviceManager.startServices([
|
||||||
{ name: 'auth-proxy', relativeDir: 'auth-proxy' },
|
{ name: 'auth-proxy', relativeDir: 'auth-proxy' },
|
||||||
{ name: 'stream-api', relativeDir: 'stream-api' },
|
{ name: 'stream-api', relativeDir: 'stream-api' },
|
||||||
{ name: 'live-api-streampk', relativeDir: 'live-api-streampk' }
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const playerDir = path.join(APPDATA_DIR, 'player');
|
const playerDir = path.join(APPDATA_DIR, 'player');
|
||||||
@@ -618,7 +617,6 @@ button:active {
|
|||||||
{ port: 3001, name: 'player' },
|
{ port: 3001, name: 'player' },
|
||||||
{ port: 3000, name: 'auth-proxy' },
|
{ port: 3000, name: 'auth-proxy' },
|
||||||
{ port: 7860, name: 'stream-api' },
|
{ port: 7860, name: 'stream-api' },
|
||||||
{ port: 5000, name: 'live-api-streampk' }
|
|
||||||
];
|
];
|
||||||
for (const { port, name } of healthChecks) {
|
for (const { port, name } of healthChecks) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class Patcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
purgeOldCode() {
|
purgeOldCode() {
|
||||||
const dirs = ['frontend', 'player', 'stream-api', 'live-api-streampk'];
|
const dirs = ['frontend', 'player', 'stream-api'];
|
||||||
for (const dir of dirs) {
|
for (const dir of dirs) {
|
||||||
const fullPath = path.join(this.appDataPath, dir);
|
const fullPath = path.join(this.appDataPath, dir);
|
||||||
if (fs.existsSync(fullPath)) {
|
if (fs.existsSync(fullPath)) {
|
||||||
@@ -74,7 +74,6 @@ class Patcher {
|
|||||||
'player/index.html',
|
'player/index.html',
|
||||||
'auth-proxy/server.js',
|
'auth-proxy/server.js',
|
||||||
'stream-api/server.js',
|
'stream-api/server.js',
|
||||||
'live-api-streampk/server.js',
|
|
||||||
'frontend/index.html'
|
'frontend/index.html'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user