chenquincy / app-info-parser

A javascript parser for parsing .ipa or .apk files. IPA/APK文件 js 解析器
MIT License
492 stars 116 forks source link

[file] must be an instance of Blob or File in browser. #68

Closed liujiayi13 closed 2 years ago

liujiayi13 commented 3 years ago

请问这个const parser = new AppInfoParser('../packages/xxx.apk') ;传的值应该是什么格式的

chenquincy commented 3 years ago

@liujiayi13 可以参考 example 中的 html 示例。'../packages/xxx.apk' 是在 node 中的使用方法,浏览器中需要传递文件格式。

17628673421 commented 1 year ago

I still don't understand the usage in the example, could you explain it in more detail? I saw that mistake too!

chenquincy commented 1 year ago

I still don't understand the usage in the example, could you explain it in more detail? I saw that mistake too!

Sry for the late reply, you can just read the example in basic-use.html. You should get the file blob by an input element while using in browser.