mirror of https://github.com/CrimsonTome/tldr.git
20 lines
361 B
Markdown
20 lines
361 B
Markdown
|
# asar
|
||
|
|
||
|
> Electron平台的文件打包工具.
|
||
|
|
||
|
- 打包一个文件或目录:
|
||
|
|
||
|
`asar pack {{path/to/file_or_directory}} {{archived.asar}}`
|
||
|
|
||
|
- 解压一个asar文件:
|
||
|
|
||
|
`asar extract {{archived.asar}}`
|
||
|
|
||
|
- 从asar文件中解压指定的文件:
|
||
|
|
||
|
`asar extract-file {{archived.asar}} {{file}}`
|
||
|
|
||
|
- 列出一个asar文件中的内容:
|
||
|
|
||
|
`asar list {{archived.asar}}`
|