ios-ipa-server icon indicating copy to clipboard operation
ios-ipa-server copied to clipboard

打开大量ipa的目录速度慢

Open bumaociyuan opened this issue 6 years ago • 3 comments

优化获取ipa图标速度

bumaociyuan avatar Sep 17 '18 06:09 bumaociyuan

我也遇到同样的问题了,ipa多了之后,不是打开慢,就是打不开。 不过ios-ipa-server配合Jenkins,真的是太方便了打包装包。

songxing10000 avatar Nov 21 '18 08:11 songxing10000

来感谢作者,项目非常优秀,目前已经投入使用,另外使用脚本定义了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

非常方便,再次感谢!

eryajf avatar Dec 09 '19 03:12 eryajf

修改 itemInfoWithName 方法 注释从 var ipa = new AdmZip(location); (207行) 到 fs.removeSync(tmpOut); (229) iconString 赋值为一个固定值, 速度会快很多.

houyoufa avatar Jan 10 '20 07:01 houyoufa