2018-09-09 15:15:25 +01:00
|
|
|
# asar
|
|
|
|
|
|
|
|
> A file archiver for the Electron platform.
|
2019-04-11 17:23:50 +01:00
|
|
|
> Homepage: <https://github.com/electron/asar>.
|
2018-09-09 15:15:25 +01:00
|
|
|
|
2019-02-08 00:31:19 +00:00
|
|
|
- Archive a file or directory:
|
2018-09-09 15:15:25 +01:00
|
|
|
|
2019-02-08 00:31:19 +00:00
|
|
|
`asar pack {{path/to/file_or_directory}} {{archived.asar}}`
|
2018-09-09 15:15:25 +01:00
|
|
|
|
|
|
|
- Extract an archive:
|
|
|
|
|
|
|
|
`asar extract {{archived.asar}}`
|
|
|
|
|
|
|
|
- Extract a specific file from an archive:
|
|
|
|
|
|
|
|
`asar extract-file {{archived.asar}} {{file}}`
|
|
|
|
|
2018-09-12 10:28:40 +01:00
|
|
|
- List the contents of an archive file:
|
2018-09-09 15:15:25 +01:00
|
|
|
|
|
|
|
`asar list {{archived.asar}}`
|