2023-06-03 04:50:03 +08:00
|
|
|
|
# ncmdump
|
|
|
|
|
|
|
|
|
|
使用本程序可将下载的网易云音乐缓存文件(ncm)转换为 mp3 或 flac 格式
|
|
|
|
|
|
2021-10-07 00:33:57 +08:00
|
|
|
|
## 简介
|
2023-06-03 04:50:03 +08:00
|
|
|
|
|
2021-10-07 00:33:57 +08:00
|
|
|
|
该版本为最早的 C++ 版本,也是作者开发的市面上第一个支持 ncm 转换的程序
|
|
|
|
|
|
|
|
|
|
源码复刻自 anonymous5l/ncmdump,感谢前辈的付出!
|
|
|
|
|
做了 Windows 下的移植,修复了一些编译问题
|
|
|
|
|
|
2023-10-04 17:03:16 +08:00
|
|
|
|
## 传送门
|
2023-06-03 04:50:03 +08:00
|
|
|
|
|
2021-10-07 00:33:57 +08:00
|
|
|
|
2021年10月6日,原作者已经删库
|
|
|
|
|
|
2024-01-06 00:30:18 +08:00
|
|
|
|
## 使用
|
|
|
|
|
|
2024-01-10 12:48:35 +08:00
|
|
|
|
你可以使用 Homebrew 来安装 ncmdump
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
brew install ncmdump
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
或者从 [Release](https://github.com/taurusxin/ncmdump/releases) 下载最新版本的对应系统的已编译好的二进制文件
|
2024-01-06 00:30:18 +08:00
|
|
|
|
|
|
|
|
|
使用 `-h` 或 `--help` 参数来打印帮助
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
ncmdump -h
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
命令行下输入一个或多个文件
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
ncmdump file1 file2...
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
你可以使用 `-d` 参数来指定一个文件夹,对文件夹下的所有文件批量处理
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
ncmdump -d folder
|
|
|
|
|
```
|
|
|
|
|
|
2024-02-07 22:51:06 +08:00
|
|
|
|
## 编译项目
|
2023-06-03 04:50:03 +08:00
|
|
|
|
|
2024-02-07 22:51:06 +08:00
|
|
|
|
克隆本仓库
|
2023-06-03 04:50:03 +08:00
|
|
|
|
|
2021-10-07 00:33:57 +08:00
|
|
|
|
```shell
|
2024-02-07 22:51:06 +08:00
|
|
|
|
git clone https://github.com/taurusxin/ncmdump.git
|
2021-10-07 00:33:57 +08:00
|
|
|
|
```
|
|
|
|
|
|
2024-02-07 22:51:06 +08:00
|
|
|
|
更新子模块
|
2021-10-07 05:00:51 +08:00
|
|
|
|
|
2024-02-07 22:51:06 +08:00
|
|
|
|
```shell
|
|
|
|
|
cd ncmdump
|
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
```
|
2021-10-07 00:33:57 +08:00
|
|
|
|
|
2024-02-07 22:51:06 +08:00
|
|
|
|
使用 CMake 配置项目。Windows 下若使用 GNU 套件,推荐使用 [msys2](https://www.msys2.org/) 或者 [winlibs](https://winlibs.com/)
|
2021-10-07 00:33:57 +08:00
|
|
|
|
|
2024-02-07 22:51:06 +08:00
|
|
|
|
```shell
|
|
|
|
|
# Windows MinGW
|
|
|
|
|
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -B build
|
2021-10-07 00:33:57 +08:00
|
|
|
|
|
2024-02-07 22:51:06 +08:00
|
|
|
|
# Windows MSVC
|
2024-02-16 22:06:58 +08:00
|
|
|
|
cmake -G "Visual Studio 17 2022" -A x64 -B build
|
2021-10-07 05:00:51 +08:00
|
|
|
|
|
2024-02-07 22:51:06 +08:00
|
|
|
|
# Linux / macOS
|
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -B build
|
2021-10-07 05:00:51 +08:00
|
|
|
|
```
|
2021-10-07 00:33:57 +08:00
|
|
|
|
|
2024-02-07 22:51:06 +08:00
|
|
|
|
编译项目
|
2021-10-28 01:12:57 +08:00
|
|
|
|
|
|
|
|
|
```shell
|
2024-02-08 10:49:07 +08:00
|
|
|
|
# Windows MSVC 需要在构建阶段指定 --config Release
|
2024-02-16 22:06:58 +08:00
|
|
|
|
cmake --build build -j 8 --config Release
|
2024-02-08 10:49:07 +08:00
|
|
|
|
|
|
|
|
|
# Windows MinGW / Linux / macOS
|
2024-02-16 22:06:58 +08:00
|
|
|
|
cmake --build build -j 8
|
2021-10-28 01:12:57 +08:00
|
|
|
|
```
|