什么是.asar文件,为什么在电子应用中使用它 [英] What is .asar file and why it's used in electron applications

查看:143
本文介绍了什么是.asar文件,为什么在电子应用中使用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以问题在标题中.据我了解,.asar是电子应用程序中使用的一种存档文件.但是它的目标是什么?

So the question is in the title. As far as I understand, .asar is kind of archived file using in electron app. But what is the goal for it?

推荐答案

Asar用于将您的应用程序文件连接到一个大文件中,它减轻了问题,并且略微加快了 require .

Asar is used to concatenate your application files to one big file, it mitigates issues and it slightly speeds up require.

为减轻Windows上长路径名的问题,速度稍有降低提出要求并从粗略检查中隐藏您的源代码,您可以选择将您的应用打包到一个小的asar存档中更改您的源代码.

To mitigate issues around long path names on Windows, slightly speed up require and conceal your source code from cursory inspection, you can choose to package your app into an asar archive with little changes to your source code.

原始URL的网络存档 Electron zh电子书

这篇关于什么是.asar文件,为什么在电子应用中使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆