This article provides a solution to decompress an Electron asar file without encountering the ‘unable to find xxx in app.asar.unpacked’ issue. It explains the process of extracting the file without moving it, and then offers commands for both decompression and moving the file to its desired location.

解压asar的时候 注意不要移动app.asar的位置 解压完毕之后再移动

1
2
3
4
5
6
# to prevent 'unable to find xxx in app.asar.unpacked' issue, do not move app.asar yet.
asar e app.asar app
mkdir asar
cp app.asar asar
rm app.asar

Comments