https://github.com/foxscore/make-unitypackage
https://github.com/foxscore/make-unitypackage
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/foxscore/make-unitypackage
- Owner: foxscore
- Created: 2024-10-15T10:49:38.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-13T11:08:50.000Z (about 1 year ago)
- Last Synced: 2025-11-16T23:27:26.461Z (8 months ago)
- Language: JavaScript
- Size: 243 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Make UnityPackage
> [!CAUTION]
> If you were using `v1`, make sure to upgrade to `v1.1`, as there was a critical bug that made `.unitypackage` files uninstallable.
## Licensing
- Licensed under [GNU GPL v3 or later](https://spdx.org/licenses/GPL-3.0-or-later.html).
- The contents of the `dist` folder are unlincensed, and were generated using [ncc](https://www.npmjs.com/package/@vercel/ncc).
## Inputs
| Required | Parameter | Description | Type | Default |
| :------: | :-------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------- | :------ |
| ✓ | `path` | The directory that should be converted into a UnityPackage. | `string` | |
| ✓ | `saveTo` | Where the .unitypackage file should be saved to. | `string` | |
| | `icon` | Path to the icon file. Must be a `png`. | `string` | *Empty* |
| | `prefix` | A text that should be put infront of any files path. If your repository is the package itself, the prefix could be something like `Packages/com.example/`. If your repository is an entire Unity project, the prefix should be left out / empty. | `string` | *Empty* |
## Setup
Add the following snippet to your workflow file, with the appropriate parameters:
```yml
- name: Create UnityPackage
uses: foxscore/make-unitypackage@v1
with:
path: Packages/com.example.package
saveTo: ${{ env.unityPackage }}
```