From 46a7ba0ba735a36749e359ffa74dc02b6ea64148 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Tue, 12 Nov 2024 16:30:23 -0800 Subject: [PATCH] Run debug_all instead of individual debugs. (#233) * Debug All. * Debug all. * Add. --- .github/workflows/debug_all.yml | 3 +++ .github/workflows/debug_linux.yml | 9 --------- .github/workflows/debug_macos.yml | 9 --------- .github/workflows/debug_windows.yml | 8 -------- src/main.ts | 4 ++-- 5 files changed, 5 insertions(+), 28 deletions(-) diff --git a/.github/workflows/debug_all.yml b/.github/workflows/debug_all.yml index b4bce3f7..07249989 100644 --- a/.github/workflows/debug_all.yml +++ b/.github/workflows/debug_all.yml @@ -1,6 +1,9 @@ name: Build All Platforms Debug on: + pull_request: + branches: + - 'main' push: branches: - 'main' diff --git a/.github/workflows/debug_linux.yml b/.github/workflows/debug_linux.yml index 82bfecc4..d91adf37 100644 --- a/.github/workflows/debug_linux.yml +++ b/.github/workflows/debug_linux.yml @@ -3,15 +3,6 @@ name: Build App Linux Debug on: workflow_dispatch: workflow_call: - pull_request: - branches: - - main - paths-ignore: - - '.github/**' - - '.prettierrc' - - '.eslintrc.json' - - '.prettierignore' - - 'package.json' jobs: build-linux-debug: diff --git a/.github/workflows/debug_macos.yml b/.github/workflows/debug_macos.yml index 81728377..7716b8db 100644 --- a/.github/workflows/debug_macos.yml +++ b/.github/workflows/debug_macos.yml @@ -3,15 +3,6 @@ name: Build App Macos Debug on: workflow_dispatch: workflow_call: - pull_request: - branches: - - main - paths-ignore: - - '.github/**' - - '.prettierrc' - - '.eslintrc.json' - - '.prettierignore' - - 'package.json' jobs: build-macos-debug: diff --git a/.github/workflows/debug_windows.yml b/.github/workflows/debug_windows.yml index ebf7a1cc..de279e67 100644 --- a/.github/workflows/debug_windows.yml +++ b/.github/workflows/debug_windows.yml @@ -3,14 +3,6 @@ name: Build App Windows Debug on: workflow_dispatch: workflow_call: - pull_request: - branches: - - main - paths-ignore: - - '.github/**' - - '.prettierrc' - - '.eslintrc.json' - - '.prettierignore' jobs: build-windows-debug: diff --git a/src/main.ts b/src/main.ts index 95ca2762..5399a69b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,12 +4,12 @@ import axios from 'axios'; import path from 'node:path'; import { SetupTray } from './tray'; import { IPC_CHANNELS, SENTRY_URL_ENDPOINT, ProgressStatus } from './constants'; -import { app, BrowserWindow, dialog, ipcMain, shell } from 'electron'; +import { app, dialog, ipcMain } from 'electron'; import log from 'electron-log/main'; import * as Sentry from '@sentry/electron/main'; import * as net from 'net'; import { graphics } from 'systeminformation'; -import { createModelConfigFiles, getModelConfigPath, readBasePathFromConfig } from './config/extra_model_config'; +import { createModelConfigFiles, getModelConfigPath } from './config/extra_model_config'; import todesktop from '@todesktop/runtime'; import { PythonEnvironment } from './pythonEnvironment'; import { DownloadManager } from './models/DownloadManager';