# 使用 Homebrew, MacPorts, Nix 安装 swftools

查看 swftools 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:swftools
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install swftools
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install swftools
```

  证据: MacPorts ports tree: graphics/swftools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#swftools
```

  证据: nixpkgs package indexes: pkgs/by-name/sw/swftools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:swftools
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/swftools>
- **版本:** 0.9.2
- **来源摘要:** SWF manipulation and generation tools
- **主页:** <https://github.com/swftools/swftools>
- **仓库:** <https://github.com/swftools/swftools>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://distfiles.macports.org/swftools/swftools-0.9.2.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- as3compile (cli)
- font2swf (cli)
- png2swf (cli)
- swfbbox (cli)
- swfc (cli)
- swfcombine (cli)
- swfdump (cli)
- swfextract (cli)
- swfrender (cli)
- swfstrings (cli)
- wav2swf (cli)
- as3compile (别名)
- font2swf (别名)
- png2swf (别名)
- swfbbox (别名)
- swfc (别名)
- swfcombine (别名)
- swfdump (别名)
- swfextract (别名)
- swfrender (别名)
- swfstrings (别名)
- wav2swf (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.9.2
- 本地数据: OK
- 上游仓库: https://github.com/swftools/swftools
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

SWFTools is a collection of command-line utilities for reading, combining, extracting, and generating Adobe Flash SWF files. Its package-manager relevance comes from the Unix-toolbox shape of the project: many small executables such as swfdump, swfextract, png2swf, wav2swf, font2swf, swfc, and as3compile rather than one monolithic application.

### 项目历史

The official ChangeLog records the project from an initial 0.0.1 release through the 0.9 series. Across those releases the suite expanded from PDF and SWF manipulation into text extraction, image and audio conversion, Flash compression support, SWF bounding-box work, a scripting compiler, Python bindings, and ActionScript 3 tooling.

### 采用历史

The official README reports portability across Solaris, Linux, FreeBSD, OpenBSD, HP-UX, macOS, and older Windows releases. In package-manager culture, SWFTools survived the decline of browser Flash because archival, conversion, and inspection tasks still needed reproducible command-line tools.

### 使用方式

Typical usage is file-oriented: inspect SWF metadata with swfdump, extract embedded assets with swfextract, combine or wrap movies with swfcombine, or generate SWF content from images, fonts, WAV audio, PDFs, or simple source scripts. This makes the suite closer to ImageMagick-style media plumbing than to an authoring environment.

### 为什么软件包爱好者会关心

SWFTools matters to package nerds as a preservation-era media package: it packages a historically important but now legacy format, bundles many utilities with optional library dependencies, and keeps old Flash workflows scriptable on modern Unix-like systems.

### 时间线

- 0.0.1: Initial release recorded in the official ChangeLog.
- 0.3.0: png2swf and wav2swf added, alongside Flash 6 compressed SWF support.
- 0.5.0: swfc and swfbbox added.
- 0.9.0: as3compile added and SWF/Flash 8 and 9 support expanded.
- 0.9.2: Poppler integration work started for pdf2swf.

### Related projects

- Adobe Flash SWF is the file format SWFTools manipulates.
- xpdf and later Poppler appear in the official ChangeLog as PDF parser lineage for pdf2swf.
- LAME, zlib, freetype, and other media libraries appear in the build and feature history.

### 来源

- <https://github.com/swftools/swftools>
- <https://github.com/swftools/swftools/blob/master/ChangeLog>
- <https://www.swftools.org/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** swftools
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - swftools: normalized package name match | nixpkgs package indexes: pkgs/by-name/sw/swftools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - swftools: normalized package name match | MacPorts ports tree: graphics/swftools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [ffmpeg](https://pkg.so/zh-hans/brew/ffmpeg/) - Shares pkgdb curated category or tags: cli, media.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Shares pkgdb curated category or tags: cli, media.
- [jpeg-turbo](https://pkg.so/zh-hans/brew/jpeg-turbo/) - Shares pkgdb curated category or tags: cli, media.
- [fontconfig](https://pkg.so/zh-hans/brew/fontconfig/) - Shares pkgdb curated category or tags: cli, media.
- [freetype](https://pkg.so/zh-hans/brew/freetype/) - Shares pkgdb curated category or tags: cli, media.
- [little-cms2](https://pkg.so/zh-hans/brew/little-cms2/) - Shares pkgdb curated category or tags: cli, media.
- [openexr](https://pkg.so/zh-hans/brew/openexr/) - Shares pkgdb curated category or tags: cli, media.
- [giflib](https://pkg.so/zh-hans/brew/giflib/) - Shares pkgdb curated category or tags: cli, media.
- [apngasm](https://pkg.so/zh-hans/brew/apngasm/) - Local package facts share a topical domain. Shared terms: cli, generation, media.
- [dromeaudio](https://pkg.so/zh-hans/brew/dromeaudio/) - Local package facts share a topical domain. Shared terms: cli, manipulation, media.
- [ffmpegthumbnailer](https://pkg.so/zh-hans/brew/ffmpegthumbnailer/) - Local package facts share a topical domain. Shared terms: cli, generation, media.

## Combined YAML source

View the package source record on GitHub. [combined/swftools.yml](https://github.com/mxcl/pkgdb/blob/main/combined/swftools.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
