game-ci / game-ci/unity-builder

Generating a unitypackage using unity-builder

Open
#236 10 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
1.1k
Forks
313
Avg merge
1h 39m
Merged PRs (30d)
1

Description

**Context**

Hello! Thank you for this wonderful GH action, supporting docs etc - great stuff. I am a library developer and publish a "unitypackage" that Unity developers can import into their project: https://github.com/mParticle/mparticle-unity-plugin

We would like to generate our unitypackage with GH actions.

**Suggested solution**

We have a bash script that we currently run locally, it looks something like this:

```
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
-projectPath "${PWD}" \
-logFile \
-exportPackage Assets/foo.cs \
Assets/bar.cs
Example.unitypackage -nographics -batchmode -quit;
```

You can see a full example here: https://github.com/mParticle/mparticle-unity-plugin/blob/master/buildscript.sh

Seems like the critical parameter that the GH action would have to take is the list of assets to export.

**Considered alternatives**

We tried to hack our way around and run bash script in the docker image created by unity-builder but paused as it was getting too unsustainable.

**Additional details**

Supporting the development of unitypackage's/sdks would increase your product's TAM such that it's even more useful to library developers vs only app developers :-)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.