How to unpack an .asar file?

前端 未结 3 627
野趣味
野趣味 2020-12-04 10:13

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 bac

相关标签:
3条回答
  • 2020-12-04 10:42

    It is possible to upack without node installed using the following 7-Zip plugin:
    http://www.tc4shell.com/en/7zip/asar/

    Thanks @MayaPosch for mentioning that in this comment.

    0 讨论(0)
  • 2020-12-04 10:43

    From the asar documentation

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

    Extract the whole archive:

    npx asar extract app.asar destfolder 
    

    Extract a particular file:

    npx asar extract-file app.asar main.js
    
    0 讨论(0)
  • 2020-12-04 10:44

    https://www.electronjs.org/apps/asarui

    UI for Asar, Extract All, or drag extract file/directory

    0 讨论(0)
提交回复
热议问题