chore: attempt to fix nodecar build step

This commit is contained in:
zhom
2025-05-29 11:20:13 +04:00
parent 8b7fcf1a4d
commit 2ff93c8010
3 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -46,18 +46,22 @@ jobs:
with:
components: rustfmt, clippy
- name: Install Linux dependencies
- name: Install dependencies (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt install libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
- name: Install frontend dependencies
run: pnpm install --frozen-lockfile
- name: Install nodecar dependencies
run: |
cd nodecar
pnpm install --frozen-lockfile
- name: Build nodecar binary
shell: bash
run: |
cd nodecar
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
+1
View File
@@ -92,6 +92,7 @@ jobs:
pnpm install --frozen-lockfile
- name: Build nodecar sidecar
shell: bash
run: |
cd nodecar
pnpm run ${{ matrix.nodecar_script }}
+2 -1
View File
@@ -8,6 +8,7 @@ import {
deleteProxyConfig,
isProcessRunning,
generateProxyId,
listProxyConfigs,
} from "./proxy-storage";
/**
@@ -103,7 +104,7 @@ export async function stopProxyProcess(id: string): Promise<boolean> {
* @returns Promise resolving when all proxies are stopped
*/
export async function stopAllProxyProcesses(): Promise<void> {
const configs = require("./proxy-storage").listProxyConfigs();
const configs = listProxyConfigs();
for (const config of configs) {
await stopProxyProcess(config.id);