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

https://github.com/rustunit/upextract

UnityPackage extract asset tool
https://github.com/rustunit/upextract

Last synced: 7 months ago
JSON representation

UnityPackage extract asset tool

Awesome Lists containing this project

README

          

# upextract

[![crates.io][sh_crates]][lk_crates]
[![ci][sh_ci]][lk_ci]
[![discord][sh_discord]][lk_discord]

[sh_crates]: https://img.shields.io/crates/v/upextract.svg
[lk_crates]: https://crates.io/crates/upextract
[sh_ci]: https://github.com/rustunit/upextract/workflows/ci/badge.svg
[lk_ci]: https://github.com/rustunit/upextract/actions
[sh_discord]: https://img.shields.io/discord/1176858176897953872?label=discord&color=5561E6
[lk_discord]: https://discord.gg/rQNeEnMhus

UnityPackage Asset extract tool.

[![demo](https://asciinema.org/a/696019.svg)](https://asciinema.org/a/696019?autoplay=1)

## Requirements

* `rust` installed (cargo specfically)
* `tar` installed on `PATH`

## Installation

```sh
cargo install upextract
```

## Usage

```sh
UnityPackage Asset extract tool

Usage: upextract

Commands:
extract Extracts contents of a unitypackage
list Lists unitypackages in the Unity Asset Store folder
inspect List contents of a unitypackage
help Print this message or the help of the given subcommand(s)

Options:
-h, --help Print help
-V, --version Print version
```

### upextract extract

```sh
Usage: upextract extract [OPTIONS] --bundle

Options:
-b, --bundle unitybundle
-o, --out Output folder [default: out]
-f, --flatten Flatten folder structure
--tmp Tmp folder to extract to. (defaults to use system tmp)
-i, --include What asset files (extensions) to extract. Defaults to all
-h, --help Print help
```

### upextract list

```sh
Usage: upextract list [OPTIONS]

Options:
--assets-folder Unity Asset Store folder
-h, --help Print help
```

### upextract inspect

```sh
List contents of a unitypackage

Usage: upextract inspect [OPTIONS] --bundle

Options:
-b, --bundle unitybundle
--tmp Tmp folder to extract to. (defaults to use system tmp)
-h, --help Print help
```

## Example

```sh
upextract extract -b demoasset/test.unitypackage
# or
upextract extract -b demoasset/test.unitypackage -o output
```