tldr/pages/common/asar.md

21 lines
464 B
Markdown
Raw Normal View History

2018-09-09 15:15:25 +01:00
# asar
> A file archiver for the Electron platform.
> More information: <https://github.com/electron/asar>.
2018-09-09 15:15:25 +01:00
- Archive a file or directory:
2018-09-09 15:15:25 +01:00
`asar pack {{path/to/input_file_or_directory}} {{path/to/output_archive.asar}}`
2018-09-09 15:15:25 +01:00
- Extract an archive:
`asar extract {{path/to/archive.asar}}`
2018-09-09 15:15:25 +01:00
- Extract a specific file from an archive:
`asar extract-file {{path/to/archive.asar}} {{file}}`
2018-09-09 15:15:25 +01:00
- List the contents of an archive file:
2018-09-09 15:15:25 +01:00
`asar list {{path/to/archive.asar}}`