ios-ipa-server
ios-ipa-server copied to clipboard
打开大量ipa的目录速度慢
优化获取ipa图标速度
我也遇到同样的问题了,ipa多了之后,不是打开慢,就是打不开。 不过ios-ipa-server配合Jenkins,真的是太方便了打包装包。
来感谢作者,项目非常优秀,目前已经投入使用,另外使用脚本定义了ipa目录只保留五个最新的构建记录,脚本如下:
cat keep-five.sh
#!/bin/bash
file_path="/media/ipa/"
file_name="*.ipa"
while true
do
A=`ls $file_path/$file_name | wc -l`
B=`ls -lt $file_path/$file_namt | tail -n 1 | awk '{print $9}'`
if [ $A -gt 5 ];then
rm -f $file_path/$B
else
break
fi
done
非常方便,再次感谢!
修改 itemInfoWithName 方法 注释从 var ipa = new AdmZip(location); (207行) 到 fs.removeSync(tmpOut); (229) iconString 赋值为一个固定值, 速度会快很多.