View Single Post
  #1  
Old 10-26-2025, 02:17
CodeCracker CodeCracker is offline
VIP
 
Join Date: Jun 2011
Posts: 905
Rept. Given: 68
Rept. Rcvd 661 Times in 278 Posts
Thanks Given: 64
Thanks Rcvd at 3,820 Times in 717 Posts
CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699
node-v20.14.0-win-x86_plugins:
https://workupload.com/file/bALjUdRDLJp

1)
npm install -g asar

Go to an empty folder, copy your test.asar there
Make a new folder near test.asar with name test
asar extract app.asar test

2)
Install prettier (Prettier ยท Opinionated Code Formatter ) to beautify it!
npm install --g prettier
prettier --write test.js


In case you getting JavaScript heap out of memory, open a cmd and set this var for the session (tested with note v10.24.1)
set NODE_OPTIONS=--max-old-space-size=8192

3)
Make the changes you want then go back to root dir and pack the test folder to app.asar with
asar pack test app.asar
Reply With Quote
The Following 4 Users Say Thank You to CodeCracker For This Useful Post:
besoeso (10-26-2025), blue_devil (10-27-2025), niculaita (10-27-2025), riverstore (01-07-2026)