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

查看:9
本文介绍了什么是 .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 的网络存档 电子电子书

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

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