Skip to content

A trait that adds capability to unpack electron .asar file(s).

License

Notifications You must be signed in to change notification settings

CatUniversity/asar-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asar-explorer

Trait to unpack an electron .asar file which implements [std::io::Read].

Usage

Given an asar file named foo.asar

use std::fs::File;

use asar_explorer::Asar;

fn main() -> std::io::Result<()> {
    let mut file = File::open("foo.asar");
    let headers = file.get_headers()?;
    file.unpack_files(&headers, "./foo", None)?;

    Ok(())
}

The above sample will unpack all files into a relative directory called foo.

And that's about it.

About

A trait that adds capability to unpack electron .asar file(s).

Resources

License

Stars

Watchers

Forks

Languages