WuOtto / Macimagesetgenerator
2个脚本文件,帮助你在Mac上,生成Xcode可使用的APP图标和启动图。
Stars: ✭ 73
Programming Languages
shell
77523 projects
Projects that are alternatives of or similar to Macimagesetgenerator
Fastlane Plugin Test center
🎯 The best fastlane plugin to understand and tame misbehaving iOS tests 🎉
Stars: ✭ 214 (+193.15%)
Mutual labels: xcode, mac
Maplebacon
🍁🥓 Lightweight and fast Swift library for image downloading, caching and transformations
Stars: ✭ 322 (+341.1%)
Mutual labels: xcode, image
Ipadownload
Search and download decrypted IPA file from 3rd-party App Store.
Stars: ✭ 247 (+238.36%)
Mutual labels: xcode, mac
Tesseract Macos
Objective C wrapper for the open source OCR Engine Tesseract (macOS)
Stars: ✭ 154 (+110.96%)
Mutual labels: xcode, mac
Flutter photo
Pick image/video from album by flutter. Support ios and android. UI by flutter, no native.
Stars: ✭ 285 (+290.41%)
Mutual labels: xcode, image
Nocturnal
A Dimness and Night Shift menu bar app for macOS 🌙
Stars: ✭ 199 (+172.6%)
Mutual labels: xcode, mac
Mbicons
MBIcons contains over 200 icons that can be resized to any dimensions as they are drawn using NSBezierPath.
Stars: ✭ 537 (+635.62%)
Mutual labels: xcode, mac
Kingfisher
A lightweight, pure-Swift library for downloading and caching images from the web.
Stars: ✭ 19,512 (+26628.77%)
Mutual labels: xcode, image
Exhibit
Exhibit is a managed screensaver App for tvOS.
Stars: ✭ 19 (-73.97%)
Mutual labels: xcode, image
Swiftui
A collaborative list of awesome SwiftUI resources. Feel free to contribute!
Stars: ✭ 774 (+960.27%)
Mutual labels: xcode, mac
Learningopencv
Source code for Learning OpenCV 《学习OpenCV》源码及 Mac 运行工程
Stars: ✭ 57 (-21.92%)
Mutual labels: xcode, mac
Picker
Picker - A CameraX based WhatsApp Style Image-Video Picker
Stars: ✭ 69 (-5.48%)
Mutual labels: image
Automator
Various Automator and AppleScript workflow and scripts for simplifying life
Stars: ✭ 68 (-6.85%)
Mutual labels: mac
Loadingshimmer
An easy way to add a shimmering effect to any view with just one line of code. It is useful as an unobtrusive loading indicator.
Stars: ✭ 1,180 (+1516.44%)
Mutual labels: xcode
Xcodeappplugintemplate
App Plugin Project Template For iOS App And Mac App. Make it easy to hook app.
Stars: ✭ 71 (-2.74%)
Mutual labels: xcode
概述
之前用的一个批量导出APP图标和启动图的软件,今天发现收费了,于是自己造了个简单的轮子。
实现
Mac上的sips
命令,可以很方便的帮助用户修改图片尺寸
Xcode里面的APP启动图资源包含两部分
- 图片资源
- 描述文件
所以这个脚本的功能就是两个
- 生成描述文件
Contents.json
- 修改图片尺寸并关联描述文件
生成描述文件
使用cat
命令生成描述文件
setContents(){
cat <<EOF >./AppIcon/Contents.json
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"scale" : "2x",
"filename" : "icon_40x40.png"
},
{
"size" : "20x20",
"idiom" : "iphone",
"scale" : "3x",
"filename" : "icon_60x60.png"
},
...
EOF
}
修改图片尺寸
iconWithSize() {
sips -Z $1 icon.png --out ./AppIcon/icon_$1x$1.png
}
函数调用
mkdir AppIcon
setContents
for size in 40 58 60 80 87 120 180 1024
do
iconWithSize $size
done
效果展示
怎么使用
AppIcon
下载对应的sh
文件,放到你想导出图片的目录下,将你的原图命名为icon.png
,然后在控制台中进入该目录,执行
sh AppIcon.sh
LaunchImage
下载对应的sh
文件,放到你想导出图片的目录下,将你的原图命名为default.png
,然后在控制台中进入该目录,执行
sh AppLaunch.sh
就可以得到你要的资源啦。
更新日志
2019-04-28
更新生成XR
和XS Max
的启动图
2018-08-07
更新代码,使用cat
命令替换echo
生成Contents.json文件
感谢@LinMaris提供的思路
2018-06-24
更新iPad
图标支持
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].