如何解压 .asar 文件? [英] How to unpack an .asar file?

查看:32
本文介绍了如何解压 .asar 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下命令打包了我的 Electron 应用程序:

I have packed my Electron application using the following command:

asar pack app app.asar

现在,我需要将其解压缩并取回整个代码.有什么办法吗?

Now, I need to unpack it and get the whole code back. Is there any way to do so?

推荐答案

来自 asar 文档

(这里使用npx是为了避免用npm install -g asar全局安装asar工具)

(the use of npx here is to avoid to install the asar tool globally with npm install -g asar)

npx asar extract app.asar destfolder 

提取特定文件:

npx asar extract-file app.asar main.js

这篇关于如何解压 .asar 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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