abdelfattahradwan / cup

Create Unity Package (cup) is a command-line app that allows you to create Unity packages from the command line without installing Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create Unity Package (cup)

Create Unity Package (cup) is a command-line app that allows you to create Unity packages from the command line without installing Unity.

Features

  • Fast and lightweight packing process
  • Create packages without installing Unity
  • Ignore files and folders automatically
  • Create packages with different compression levels

Arguments

Argument Description
-s, --src Root directory path.
-o, --out Output package file path.
-c, --cpr Level of compression. (0 = Optimal, 1 = Fastest, 2 = None, 3 = Smallest)
-e, --exclude List of file/directory paths to ignore.
--help Display this help screen.
--version Display version information.

Ignoring Files/Folders

You can ignore certain files/folders by creating a .cupignore file at the root directory path that you specify. The .cupignore must contain only a single JSON array with glob patterns to ignore.

[
  "**/Editor/*",
  "**/Tests/*",
  "**/Examples/*",
  "**/*.tmp",
  "Assets/Scripts/Debug/**/*"
]

If the file contains anything else, an exception is thrown.

Downloads

There are two different binaries available to download:

  • A self-contained binary that does not require .NET to be installed
  • A framework-dependent binary that requires .NET to be installed

NOTE: The framework-dependent binary requires at least .NET 8 to be installed.

Help the Project

If you find this project useful, consider supporting it by buying me a coffee:

ko-fi

Your support is appreciated. Thank you!

About

Create Unity Package (cup) is a command-line app that allows you to create Unity packages from the command line without installing Unity.

License:MIT License


Languages

Language:C# 100.0%