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

Projeny support windows environment? #52

Closed
daroubing opened this issue Jan 19, 2017 · 11 comments
Closed

Projeny support windows environment? #52

daroubing opened this issue Jan 19, 2017 · 11 comments

Comments

@daroubing
Copy link
Contributor

Can I can edit ProjenyProject.yaml -'[Some Environment Var]/PathToUnityProject' ?

@svermeulen
Copy link
Contributor

It doesn't currently allow substituting environment variables but this could be added pretty easily

@daroubing
Copy link
Contributor Author

Multi developer has different path with UnityEditor or Project.It is a useful feature. Then all developer can re-use one ProjenyProject.yaml.
Can add this feature in next version? Thanks.

@svermeulen
Copy link
Contributor

If you have a different path for the unity editor, you can set that up per-machine by adding a Projeny.yaml file in your windows user home directory with contents for example

PathVars:
    UnityExePath: 'C:/Utils/Unity/Editor/Unity.exe'

I'm not sure what the other case is you're talking about. What do you mean developers might have different projects?

@svermeulen
Copy link
Contributor

Oh, are you saying different projects might use different versions of unity?

@daroubing
Copy link
Contributor Author

daroubing commented Jan 20, 2017

we team has many developers,use different unity path and project path. some developer install unity editor in "c:/Unity5.4.3/Editor/Unity.exe" ,main project in "d:/Project/UnityProject1". UnityProject1 depend on many other UnityProject,in other hard disc.
 UnityProject1 in git version control. Every developer must edit self UnityProject''s Projeny.yaml and ProjenyProject.yaml,and not re-use these config files.

@svermeulen
Copy link
Contributor

I'm not sure why environment variables solve your problem, but like I said it's trivial to add, so I've done this for you with the latest commit. I haven't created a release yet but if you want to try it you can run from source

@daroubing
Copy link
Contributor Author

daroubing commented Jan 21, 2017

Thanks.

  • I'm set environment WORK_DIR And UNITY_EDITOR_DAYDREAM.
  • Set Projeny.yaml
    image
    Set ProjenyProject.yaml
    image
    get a error
    image
    and Log
    image

Use UnityExePath: '[UnityEditor]/Unity.exe' is same error

@svermeulen
Copy link
Contributor

This is because WorkDir is not a string. You need to change WorkDir and UnityEditor to something like this:

PathVars:
    WorkDir: '[WORK_DIR]'
    UnityEditor: '[UNITY_EDITOR_DAYDREAM]'

For more details on YAML parsing see here

@daroubing
Copy link
Contributor Author

You are right.
I use WorkDir: '[WORK_DIR]'.but error
image
I replace new dll Projeny.dll and YamlDotNet.dll in "Projeny\Editor".Is right?

@svermeulen
Copy link
Contributor

Can you attach your PrjLog.txt?

@daroubing
Copy link
Contributor Author

daroubing commented Jan 22, 2017

It's my mistake. It's work very well.Thanks.

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