Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

打开大量ipa的目录速度慢 #42

Open
bumaociyuan opened this issue Sep 17, 2018 · 3 comments
Open

打开大量ipa的目录速度慢 #42

bumaociyuan opened this issue Sep 17, 2018 · 3 comments
Assignees

Comments

@bumaociyuan
Copy link
Owner

优化获取ipa图标速度

@songxing10000
Copy link

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

@eryajf
Copy link

eryajf commented Dec 9, 2019

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

非常方便,再次感谢!

@houyoufa
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants