Skip to content

Commit

Permalink
feat: adding libtorrent again
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrannychaseroperation committed Jun 27, 2024
1 parent 11dffd1 commit 63c13e1
Show file tree
Hide file tree
Showing 18 changed files with 1,269 additions and 1,212 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ jobs:
- name: Install dependencies
run: yarn

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Install dependencies
run: pip install -r requirements.txt

- name: Build with cx_Freeze
run: python torrent-client/setup.py build

- name: Build Linux
if: matrix.os == 'ubuntu-latest'
run: yarn build:linux
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Lint

on: [pull_request, push]
on: pull_request

jobs:
lint:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ jobs:
- name: Install dependencies
run: yarn

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Install dependencies
run: pip install -r requirements.txt

- name: Build with cx_Freeze
run: python torrent-client/setup.py build

- name: Build Linux
if: matrix.os == 'ubuntu-latest'
run: yarn build:linux
Expand Down
2 changes: 1 addition & 1 deletion electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ productName: Hydra
directories:
buildResources: build
extraResources:
- aria2
- hydra-download-manager
- seeds
- from: node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe
to: fastlist.exe
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
},
"type": "module",
"engines": {
"npm": "please-use-yarn",
"yarn": ">= 1.19.1"
},
"scripts": {
Expand All @@ -23,7 +22,6 @@
"start": "electron-vite preview",
"dev": "electron-vite dev",
"build": "npm run typecheck && electron-vite build",
"postinstall": "electron-builder install-app-deps && node ./postinstall.cjs",
"build:unpack": "npm run build && electron-builder --dir",
"build:win": "electron-vite build && electron-builder --win",
"build:mac": "electron-vite build && electron-builder --mac",
Expand All @@ -40,7 +38,6 @@
"@reduxjs/toolkit": "^2.2.3",
"@vanilla-extract/css": "^1.14.2",
"@vanilla-extract/recipes": "^0.5.2",
"aria2": "^4.1.2",
"auto-launch": "^5.0.6",
"axios": "^1.6.8",
"better-sqlite3": "^9.5.0",
Expand Down
50 changes: 0 additions & 50 deletions postinstall.cjs

This file was deleted.

5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
libtorrent
cx_Freeze
cx_Logging; sys_platform == 'win32'
lief; sys_platform == 'win32'
pywin32; sys_platform == 'win32'
2 changes: 1 addition & 1 deletion src/main/declaration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ declare module "aria2" {
downloadSpeed: string;
uploadSpeed: string;
infoHash?: string;
numSeeders?: string;
numSeeds?: string;
seeder?: boolean;
pieceLength: string;
numPieces: string;
Expand Down
2 changes: 1 addition & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ app.on("window-all-closed", () => {
});

app.on("before-quit", () => {
DownloadManager.disconnect();
DownloadManager.kill();
});

app.on("activate", () => {
Expand Down
20 changes: 0 additions & 20 deletions src/main/services/aria2c.ts

This file was deleted.

Loading

0 comments on commit 63c13e1

Please sign in to comment.