1$ pnpm add asar -g
2$ asar extract /[sourcePath]/app.asar /[targetPath]/ # Extract asar
After extraction, the contents are as follows:

Unnecessary Locales: Remove unused language packs in the locales directory.
1// Set language pack before whenReady 2app.commandLine.appendSwitch('lang', 'en-US'); 3await app.whenReady()
Dependencies: Ensure that development dependencies are not listed as production dependencies.
File Locking: If Electron-builder prompts that app.asar is occupied, close VS Code.