Programming/node.js2025. 8. 26. 17:08

app.asar 이라는 파일이 있어서 찾아보니 electron의 컴파일(?)된 파일이라고 한다.

압축되어 있다는데 data 파일로만 나와서 zip 등으로 풀순 없고

npx asar extract 명령을 통해서 특정 디렉토리에 풀면된다.

 

$ npx asar extract app.asar asarResources
Need to install the following packages:
  asar
Ok to proceed? (y) 
npm WARN deprecated asar@3.2.0: Please use @electron/asar moving forward.  There is no API change, just a package name change
npm WARN deprecated @types/minimatch@6.0.0: This is a stub types definition. minimatch provides its own type definitions, so you do not need this installed.
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

[링크 : https://til.jooy2.com/language/javascript/library-and-frameworks/electron/unpack-asar-file-format]

[링크 : https://richong.tistory.com/447]

 

$ asar pack app app.asar --unpack *.node

[링크 : https://www.electronjs.org/docs/latest/tutorial/asar-archives]

'Programming > node.js' 카테고리의 다른 글

node excel export  (0) 2024.07.18
web qr decoder  (0) 2024.04.04
node.js 웹소켓 채팅 서버 예제  (0) 2022.07.14
ubuntu 18.04 / nodej.s 18.x 실패  (0) 2022.05.19
웹소켓  (0) 2022.03.25
Posted by 구차니