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

Some kind of .uvm file or something #302

Open
TheKnarf opened this issue Nov 15, 2021 · 2 comments
Open

Some kind of .uvm file or something #302

TheKnarf opened this issue Nov 15, 2021 · 2 comments

Comments

@TheKnarf
Copy link

I'd like to commit a file to my git repo containing what version of Unity the project uses so that its clear.

Does uvm have some kind of project or settings file where it can specify it?

I'd love some kind of uvm init command that I can run in a new git repo that would initialise a new Unity project and save what version of Unity is used in the repo.

@Larusso
Copy link
Owner

Larusso commented Nov 16, 2021

I personally use a combination of uvm detect with the flags -fr to find the project version in sub directories (depending on your repo structure. I normally have the Unity project not in root).
uvm launch has the -f, --force-project-version flag with the combination of r, --recursive works the same.

But there is room for adjustemts. I didn't work yet on that front because I use gradle for all that and have a custom JNI wrapper and plugins to build with unity etc.

https://github.com/wooga/atlas-unity
https://github.com/wooga/atlas-unity-version-manager

With some settings which are sadly not yet fully documented gradle can figure out what Unity version is needed and install it before invoking whatever batchmode command was requested.

I like the init idea. What about additional modules (ios, android, etc). That would be also in this .uvm file? I think about it.

@Larusso
Copy link
Owner

Larusso commented Nov 16, 2021

Btw. Uvm supports alias commands like git. So any executable starting with uvm- can be called. So for a custom init command just create a script or similar named uvm-init and make sure it is in PATH.

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

No branches or pull requests

2 participants