Skip to content

anapupa/thunder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thunder

CI Docker Image

thunder从迅雷群晖套件中提取,用于发行版Linux(支持OpenWrt/Alpine/Docker)的迅雷远程下载服务。仅供测试,测试完请自觉删除。

默认Web访问端口5055

❯ ./thunder                   
Synology NAS thunder run on Linux

Usage: thunder
       thunder <COMMAND>

Commands:
  install    Install thunder
  uninstall  Uninstall thunder
  run        Run thunder
  start      Start thunder daemon
  stop       Stop thunder daemon
  log        Show the Http server daemon log
  ps         Show the Http server daemon process
  help       Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Arch Linux

Arch Linux 及其衍生版可以通过 AUR自建源安装 thunder-nas

yay -Syu thunder-nas

Ubuntu(Other Linux)

GitHub Releases 中有预编译的 deb包,二进制文件,以Ubuntu为例:

wget https://github.com/gngpp/thunder/releases/download/v1.0.3/thunder_1.0.3_amd64.deb

dpkg -i thunder_1.0.3_amd64.deb

# 安装迅雷,默认在线下载安装,如果需要设置更多参数请带上`-h`,查看说明
thunder install

# 安装迅雷以指定spk包安装,如果需要设置更多参数请带上`-h`,查看说明
thunder install /root/nasxunlei-DSM7-x86_64.spk

# 卸载迅雷
thunder uninstall

# 前台运行迅雷,如果需要设置更多参数请带上`-h`,查看说明
thunder run 

# 后台运行迅雷,如果需要设置更多参数请带上`-h`,查看说明
thunder start

# 停止运行迅雷
thunder stop

# 查看运行状态
thunder ps

# 查看运行日志
thunder log

自行编译

git clone https://github.com/gngpp/thunder && cd thunder

cargo build --release && mv target/release/thunder .

FQA

  • 当前大重构,OpenWrt / Docker 后续再完善支持
  • musl运行库的操作系统,若已存在glibc运行库,那么会优先兼容选择使用操作系统运行库环境(避免对系统其他软件依赖冲突,可能会缺依赖,自行补全)
  • 指定运行LD加载库或压缩目前无法做到(二进制带签名),需要逆向打patch
  • 插件依赖bash,系统需要安装bash

About

Synology NAS thunder run on Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 89.7%
  • HTML 4.1%
  • Dockerfile 3.2%
  • Shell 3.0%