Updates server url
Some checks failed
Queue Release Build / prepare (push) Successful in 21s
Queue Release Build / build-windows (push) Failing after 16m24s
Queue Release Build / build-linux (push) Successful in 36m14s
Queue Release Build / finalize (push) Has been skipped

This commit is contained in:
2026-03-11 03:18:47 +01:00
parent bb087cd2d8
commit edc8a98e7c
3 changed files with 37 additions and 3 deletions

View File

@@ -55,6 +55,11 @@ jobs:
npm ci
cd server && npm ci
- name: Install zip utility
run: |
apt-get update
apt-get install -y zip
- name: Set CI release version
run: >
node tools/set-release-version.js
@@ -73,6 +78,10 @@ jobs:
run: |
npx electron-builder --linux --publish never
node tools/package-server-executable.js --target node18-linux-x64 --output metoyou-server-linux-x64
rm -f dist-electron/metoyou-client-${{ needs.prepare.outputs.release_version }}.zip
rm -f dist-server/metoyou-server-linux-x64-${{ needs.prepare.outputs.release_version }}.zip
(cd dist && zip -rq ../dist-electron/metoyou-client-${{ needs.prepare.outputs.release_version }}.zip client)
(cd dist-server && zip -q metoyou-server-linux-x64-${{ needs.prepare.outputs.release_version }}.zip metoyou-server-linux-x64 sql-wasm.wasm)
- name: Upload Linux assets
env:
@@ -121,8 +130,33 @@ jobs:
- name: Build Windows assets
run: |
npx electron-builder --win --publish never
$electronBuilderWorkspace = Join-Path $env:TEMP ([guid]::NewGuid().ToString('N'))
$locationPushed = $false
New-Item -ItemType Junction -Path $electronBuilderWorkspace -Target $PWD | Out-Null
try {
Push-Location $electronBuilderWorkspace
$locationPushed = $true
npx electron-builder --win --publish never
if ($LASTEXITCODE -ne 0) {
throw "electron-builder failed with exit code $LASTEXITCODE"
}
} finally {
if ($locationPushed) {
Pop-Location
}
cmd /c rmdir "$electronBuilderWorkspace" | Out-Null
}
node tools/package-server-executable.js --target node18-win-x64 --output metoyou-server-win-x64.exe
$serverArchivePath = Join-Path $PWD "dist-server/metoyou-server-win-x64-${{ needs.prepare.outputs.release_version }}.zip"
if (Test-Path $serverArchivePath) {
Remove-Item $serverArchivePath -Force
}
Push-Location dist-server
try {
Compress-Archive -Path metoyou-server-win-x64.exe, sql-wasm.wasm -DestinationPath $serverArchivePath -CompressionLevel Optimal
} finally {
Pop-Location
}
- name: Upload Windows assets
env:

View File

@@ -147,7 +147,7 @@
"publish": [
{
"provider": "generic",
"url": "https://updates.metoyou.invalid"
"url": "https://tojusignal.azaaxin.com"
}
],
"mac": {

View File

@@ -1,4 +1,4 @@
export const environment = {
production: true,
defaultServerUrl: ''
defaultServerUrl: 'https://tojusignal.azaaxin.com'
};