mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
add some debug logs
This commit is contained in:
parent
e93f02ca76
commit
521921d90e
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -52,10 +52,10 @@ jobs:
|
|||||||
name: Build-${{ matrix.os }}
|
name: Build-${{ matrix.os }}
|
||||||
path: |
|
path: |
|
||||||
dist/win-unpacked/**
|
dist/win-unpacked/**
|
||||||
|
dist/*.dmg
|
||||||
dist/*.zip
|
dist/*.zip
|
||||||
dist/*.deb
|
dist/*.deb
|
||||||
dist/*.rpm
|
dist/*.rpm
|
||||||
dist/*.tar.gz
|
dist/*.tar.gz
|
||||||
dist/*.yml
|
dist/*.yml
|
||||||
dist/*.blockmap
|
dist/*.blockmap
|
||||||
dist/mac-arm64/*.app
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
libtorrent
|
|
||||||
cx_Freeze
|
|
||||||
cx_Logging; sys_platform == 'win32'
|
|
||||||
lief; sys_platform == 'win32'
|
|
||||||
pywin32; sys_platform == 'win32'
|
|
@ -12,6 +12,7 @@ import {
|
|||||||
import { dataSource } from "@main/data-source";
|
import { dataSource } from "@main/data-source";
|
||||||
import * as resources from "@locales";
|
import * as resources from "@locales";
|
||||||
import { userPreferencesRepository } from "@main/repository";
|
import { userPreferencesRepository } from "@main/repository";
|
||||||
|
import { logsPath } from "./constants";
|
||||||
const { autoUpdater } = updater;
|
const { autoUpdater } = updater;
|
||||||
|
|
||||||
autoUpdater.setFeedURL({
|
autoUpdater.setFeedURL({
|
||||||
@ -21,6 +22,9 @@ autoUpdater.setFeedURL({
|
|||||||
});
|
});
|
||||||
|
|
||||||
autoUpdater.logger = logger;
|
autoUpdater.logger = logger;
|
||||||
|
console.log = logger.info;
|
||||||
|
|
||||||
|
console.log("logsPath:", logsPath);
|
||||||
|
|
||||||
const gotTheLock = app.requestSingleInstanceLock();
|
const gotTheLock = app.requestSingleInstanceLock();
|
||||||
if (!gotTheLock) app.quit();
|
if (!gotTheLock) app.quit();
|
||||||
|
@ -1,12 +1,15 @@
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { spawn } from "node:child_process";
|
import { spawn } from "node:child_process";
|
||||||
import { app } from "electron";
|
import { app } from "electron";
|
||||||
|
import { logger } from "./logger";
|
||||||
|
|
||||||
export const startAria2 = () => {
|
export const startAria2 = () => {
|
||||||
const binaryPath = app.isPackaged
|
const binaryPath = app.isPackaged
|
||||||
? path.join(process.resourcesPath, "aria2", "aria2c")
|
? path.join(process.resourcesPath, "aria2", "aria2c")
|
||||||
: path.join(__dirname, "..", "..", "aria2", "aria2c");
|
: path.join(__dirname, "..", "..", "aria2", "aria2c");
|
||||||
|
|
||||||
|
logger.log("starting aria2 at:", binaryPath);
|
||||||
|
|
||||||
return spawn(
|
return spawn(
|
||||||
binaryPath,
|
binaryPath,
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user