Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anatawa12/asar4j

A asar implementation in java without runtime depndency
https://github.com/anatawa12/asar4j

asar-archive java java-8

Last synced: 14 days ago
JSON representation

A asar implementation in java without runtime depndency

Awesome Lists containing this project

README

        

# ASAR4j
[![a12 maintenance: Inactive](https://api.anatawa12.com/short/a12-inactive-svg)](https://api.anatawa12.com/short/a12-inactive-doc)
[![](https://img.shields.io/maven-central/v/com.anatawa12.asar4j/common)](https://github.com/anatawa12/asar4j/releases/latest)
[![Discord](https://img.shields.io/discord/834256470580396043)](https://discord.gg/yzEdnuJMXv)

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:

```xml

com.anatawa12.asar4j
[choose from file, writer or url]
[version]

```

To add a dependency using Gradle:

```kotlin
dependencies {
implementation("com.anatawa12.asar4j::")
}
```

[asar]: https://github.com/electron/asar