Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.39 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.39 KB

ASAR4j

a12 maintenance: Inactive Discord

A asar implementation in java without runtime dependency.

IMPORTANT: THIS LIBRARY IS EXPERIMENTAL. I MAY BREAK APIS IN THE FEATURE.

How to use

This library was separated to four jars to keep small library.

  • common The library contains Entry class. All those libraries depending on this library.
  • file The library contains java.util.zip.ZipFile-like file reader.
  • writer The library contains java.util.zip.ZipOutputStream-like file writer.
  • url The library contains implementation of asar: url protocol like jar: but allows asar-in-asar or asar-in-jar.

This library has been published on maven central repository. To add a dependency on asar4j using Maven, use the following:

<dependency>
  <groupId>com.anatawa12.asar4j</groupId>
  <artifactId>[choose from file, writer or url]</artifactId>
  <version>[version]</version>
</dependency>

To add a dependency using Gradle:

dependencies {
  implementation("com.anatawa12.asar4j:<library-name>:<version>")
}