解压Electron Asar文件注意

asar
decompression
electron
file_movement
unpacked
troubleshooting
command_line
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.
Published

March 31, 2024


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

# 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