2018-09-09 15:15:25 +01:00
|
|
|
# asar
|
|
|
|
|
|
|
|
> A file archiver for the Electron platform.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <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
|
|
|
|
2023-04-14 06:43:18 +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:
|
|
|
|
|
2023-04-14 06:43:18 +01:00
|
|
|
`asar extract {{path/to/archive.asar}}`
|
2018-09-09 15:15:25 +01:00
|
|
|
|
|
|
|
- Extract a specific file from an archive:
|
|
|
|
|
2023-04-14 06:43:18 +01:00
|
|
|
`asar extract-file {{path/to/archive.asar}} {{file}}`
|
2018-09-09 15:15:25 +01:00
|
|
|
|
2018-09-12 10:28:40 +01:00
|
|
|
- List the contents of an archive file:
|
2018-09-09 15:15:25 +01:00
|
|
|
|
2023-04-14 06:43:18 +01:00
|
|
|
`asar list {{path/to/archive.asar}}`
|