mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 11:12:07 +00:00
test
This commit is contained in:
parent
eaa5b46b1f
commit
2a02936648
3 changed files with 6 additions and 3 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -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 }}
|
||||
|
|
BIN
build/icon.icns
BIN
build/icon.icns
Binary file not shown.
|
@ -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,
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue