This commit is contained in:
Zamitto 2024-05-30 12:18:44 -03:00
parent eaa5b46b1f
commit 2a02936648
3 changed files with 6 additions and 3 deletions

View file

@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
os: [macos-11]
os: [macos-latest]
runs-on: ${{ matrix.os }}
@ -20,7 +20,7 @@ jobs:
node-version: 20.11.1
- name: Install aria2 on Mac
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-latest'
run: brew install aria2
- name: Install dependencies
@ -43,7 +43,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build Mac
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-latest'
run: sudo yarn build:mac
env:
MAIN_VITE_ONLINEFIX_USERNAME: ${{ secrets.ONLINEFIX_USERNAME }}

Binary file not shown.

View file

@ -1,12 +1,15 @@
import path from "node:path";
import { spawn } from "node:child_process";
import { app } from "electron";
import { logger } from "./logger";
export const startAria2 = () => {
const binaryPath = app.isPackaged
? path.join(process.resourcesPath, "aria2", "aria2c")
: path.join(__dirname, "..", "..", "aria2", "aria2c");
logger.info("startAria2 on:", binaryPath);
return spawn(
binaryPath,
[