This repository has been archived. It means that I won't continue to update nor fix bugs. It has been really usefull back in time when Unity didn't had a way to handle packages for creating easily libraries for our games.
For more informations around Unity's package manager, the documentation is available here.
./manageDependencies.sh
is a simple Nuget wrapper script wrote in shell that allow to retrieve dependencies without using Visual Studio.
It was designed by the Seabirds Games team in order to facilitate dependencies management.
- Nuget v3.4.3+ ;
- Sonatype Nexus server (or any other repository manager that support Nugets packages).
Notes:
- For Windows, you will need the Git bash emulated terminal to launch the script ;
- The script was tested with Git for Windows 2.5.0.windows.1.
- For Mac OS X, you will need to install Mono to be able to execute
.exe
files.
- The script was tested with Mono 4.2 SR2 (4.2.3.4) ;
⚠️ Mono is packaged with a version of Nuget deprecated for this script. You'll need to update the Nuget binary to use this script.
- Add
nuget.exe
to the PATH to allow the wrapper callnuget.exe
easily. - Add
NEXUS_SOURCE_NAME
andNEXUS_SOURCE_URL
to your~./bash_profile
to skip-n
&&-s
options. (See below)
- Download one of the last version of Nuget (v3.4.3+)
- Go to
/Library/Frameworks/Mono.framework/[...]/NuGet.exe
and replace it with the last version of Nuget you've downloaded (I suggest to rename the old file).
Notes
- Be sure to name nuget.exe as the old file :
NuGet.exe
. Otherwise you will have to go to/usr/local/bin/
and editmono
to tell him where is the newnuget.exe
to launch with mono.
./manageDependencies -a <ARTIFACT_ID> -v <ARTIFACT_VERSION> -n <NEXUS_SOURCE_NAME> -s <NEXUS_SOURCE_URL>
If you have no repository manager, there is a simple way to get one for free and in a small amount of time. Please refer to this blog post to get one :
Other usefull references :
This project license is under GNU GPL 3. Please be aware that Unity's generated files are only here for tests purpose after using manageDependencies.sh
If you find a bug in the source code or a mistake in the documentation, you can help us improve by submitting an issue to our GitHub Repository. Even better you can submit a Pull Request with a fix. Your custom changes can be crafted in a repository fork and submitted to the GitHub Repository as a Pull Request.