AppIconSetGen 是一个命令行工具,可以轻松地从提供的图像资源(例如 appIcon.pdf)为 iOS、macOS 和 watchOS 平台生成 App 图标集。
优点
使用 Make
$ git clone git@github.com:abeintopalo/AppIconSetGen.git
$ cd AppIconSetGen
$ make
使用 Swift 包管理器
$ git clone git@github.com:abeintopalo/AppIconSetGen.git
$ cd AppIconSetGen
$ swift build -c release
$ cp -f .build/release/AppIconSetGen /usr/local/bin/appiconsetgen
AppIconSetGen 需要在您的系统上安装以下内容:
AppIconSetGen 是一个命令行工具 appiconsetgen
,您可以使用以下命令手动运行它,或者在自定义构建阶段运行它
$ appiconsetgen <input file> [--output <output path>] [--iOS] [--watchOS] [--macOS] [--appIconSetName]
input file
- 图像文件的路径(.pdf, .png 等)。--iOS
- 为 iOS 生成 App 图标--watchOS
- 为 watchOS 生成 App 图标--macOS
- 为 macOS 生成 App 图标--output
- 生成的 App 图标集的输出文件夹--appIconSetName
- App 图标集名称AppIconSetGen 在 MIT 许可证下可用。 有关更多信息,请参见LICENSE。
此工具由以下工具驱动: