Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating a unitypackage using unity-builder #236

Open
samdozor opened this issue Mar 30, 2021 · 3 comments
Open

Generating a unitypackage using unity-builder #236

samdozor opened this issue Mar 30, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@samdozor
Copy link

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 :-)

@webbertakken webbertakken added the enhancement New feature or request label Apr 2, 2021
@webbertakken
Copy link
Member

Accepting contributions for this.

@GabLeRoux
Copy link
Member

There is a related documentation issue here which points to an example someone shared a while ago:
game-ci/documentation#51

@AndrewKahr
Copy link
Member

It seems Epic Online Services has a method for building a Unity package from an editor script. Combined with the customBuildMethod parameter, in theory, this should allow GameCI to build unitypackages. They also have methods for building UPM packages too.

https://github.com/PlayEveryWare/eos_plugin_for_unity/blob/183a25463a8c1ed87e5a4c52c107f7596dfcd531/Assets/Plugins/Source/Editor/Internal/UnityPackageCreationTool.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants