UNPKG

ffprobe-static-prune

Version:

A utility to prune unnecessary ffprobe-static binaries for your current platform and architecture to reduce package size.

55 lines (32 loc) 1.38 kB
# ffprobe-static-prune > 清理 `ffprobe-static` 包中无用平台和架构的二进制文件,减少 Electron 应用体积。 ## 安装 ```bash npm install -g ffprobe-static-prune ``` # ffprobe-static-prune A lightweight CLI tool to remove unnecessary `ffprobe-static` platform binaries after `npm install`, so your app package is lighter and faster. ## ✨ Features - Removes unused `ffprobe` binaries for irrelevant platforms/architectures - Ideal for reducing Electron app bundle size - Supports CLI arguments or defaults to current environment ## 📦 Installation ```bash npm install --save-dev ffprobe-static-prune or npm install -g ffprobe-static-prune ``` ## 🚀 Usage Run in your project root after installing ffprobe-static: ```bash npx ffprobe-static-prune ``` Or manually specify platform and architecture: ``` bash node index.js --platform=darwin --arch=arm64 --baseDir=. ``` | Option | Description | Default | | ------------ | --------------------------------------------------- | ------------------ | | `--platform` | Platform to keep (`darwin`, `win32`, `linux`) | `process.platform` | | `--arch` | Architecture to keep (`x64`, `arm64`, `ia32`, etc.) | `process.arch` | | `--baseDir` | Base directory of your project | `process.cwd()` |