Home > Mobile >  Unity - specify custom package path using SSH
Unity - specify custom package path using SSH

Time:01-11

We can specify package path within repository using HTTPS in Unity's manifest.json like that:

"dependencies": {
    "com.mycompany.mypackage1": "https://github.example.com/myuser/myrepository.git?path=/subfolder1",
    "com.mycompany.mypackage3": "https://github.example.com/myuser/myrepository.git?path=/subfolder2/subfolder3"
  }

Is it possible to specify package path using SSH protocol? If yes, how?

CodePudding user response:

The resulting ssh://... URL should work with the optional path and revision features.

So I think in your case this should do

"dependencies": {
    "com.mycompany.mypackage1": "ssh://[email protected]/myuser/myrepository.git?path=/subfolder1",
    "com.mycompany.mypackage3": "ssh://[email protected]/myuser/myrepository.git?path=/subfolder2/subfolder3"
}
  • Related