【发布时间】:2016-11-26 04:34:15
【问题描述】:
我使用以下命令打包了我的 Electron 应用程序:
asar pack app app.asar
现在,我需要将其解压缩并取回整个代码。有什么办法吗?
【问题讨论】:
我使用以下命令打包了我的 Electron 应用程序:
asar pack app app.asar
现在,我需要将其解压缩并取回整个代码。有什么办法吗?
【问题讨论】:
(这里使用npx是为了避免用npm install -g asar全局安装asar工具)
npx asar extract app.asar destfolder
npx asar extract-file app.asar main.js
【讨论】:
npm install -g asar 安装命令。
可以在不安装节点的情况下使用以下 7-Zip 插件进行升级:
http://www.tc4shell.com/en/7zip/asar/
感谢@MayaPosch 在this comment 中提到这一点。
【讨论】: