game-ci / game-ci/unity-builder
Move Build Script to a UPM Package
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 313
- Avg merge
- 1h 39m
- Merged PRs (30d)
- 1
Description
**Context**
Users currently have to redo a lot of the default Build Script if they want to have a custom `buildMethod`.
We should make it easier for users to add to or modify the build method, while still leveraging the default functionality.
**Suggested solution**
Remove the `buildMethod` option, and move the default build script to a UPM package that users could choose to include in their project.
If they include the UPM package, they should be able to use an API to easily add to or modify the build process.
If they don't include the package, Unity Builder would still work by importing the package during the build action.
**Considered alternatives**
My initial solution was to provide an example `BuildScript.cs` that users could copy and modify, but this approach is still not as user-friendly as it should be.
**Additional details**
This issue came from user feedback:
https://discord.com/channels/710946343828455455/710946344264794219/839682505434595370
https://discord.com/channels/710946343828455455/710946344264794219/839765128564178966
Contributor guide
Assessment
This issue has not been assessed yet.