|
21 | 21 | from buildtools.buildsystem.visualstudio import ProjectType, VisualStudio2015Solution, VS2015Project
|
22 | 22 | from config import config
|
23 | 23 | from unibuild import Project
|
| 24 | +from unibuild.projects import nuget |
24 | 25 | from unibuild.modules import build, msbuild, github, urldownload
|
25 | 26 | from unibuild.utility import lazy
|
26 |
| -nuget_version = config['nuget_version'] |
27 | 27 |
|
28 | 28 | build_path = config['paths']['build']
|
29 | 29 | download_path = config['paths']['download']
|
@@ -69,16 +69,16 @@ def prepare_nmm(context):
|
69 | 69 | # until this is fixed we lock NMM to the latest nexus release.
|
70 | 70 | Project("ncc") \
|
71 | 71 | .depend(build.Run(r"publish.bat".format("-debug" if config['build_type'] == "Debug" else "-release",
|
72 |
| - os.path.join(config["paths"]["install"], "bin")), |
| 72 | + os.path.join(config["paths"]["install"], "bin")), |
73 | 73 | working_directory=lazy.Evaluate(lambda: os.path.join(build_path, "NexusClientCli")))
|
74 | 74 | .depend(msbuild.MSBuild(os.path.join(build_path, "Nexus-Mod-Manager", 'NexusClientCli.sln'),
|
75 | 75 | working_directory=lazy.Evaluate(lambda: os.path.join(build_path, "Nexus-Mod-Manager")),
|
76 | 76 | project_platform="Any CPU")
|
77 |
| - .depend(build.Run(r"nuget.exe restore {}".format(os.path.join(build_path, "Nexus-Mod-Manager", 'NexusClientCli.sln')), |
78 |
| - environment=ncc_environment(), |
79 |
| - working_directory=lazy.Evaluate(lambda: os.path.join(build_path, "Nexus-Mod-Manager"))) |
80 |
| - .depend(build.Execute(prepare_nmm, name="append NexusClientCli project to NMM") |
81 |
| - .depend(github.Source("Nexus-Mods", "Nexus-Mod-Manager", config["nmm_version"], None, False)) |
82 |
| - .depend(github.Source(config['Main_Author'], "modorganizer-NCC", config["Main_Branch"]) |
83 |
| - .set_destination("NexusClientCli")).depend(urldownload.URLDownload("https://dist.nuget.org/win-x86-commandline/v{}/nuget.exe" |
84 |
| - .format(nuget_version))))))) |
| 77 | + .depend(build.Run(r"nuget.exe restore {}".format(os.path.join(build_path, "Nexus-Mod-Manager", 'NexusClientCli.sln')), |
| 78 | + environment=ncc_environment(), |
| 79 | + working_directory=lazy.Evaluate(lambda: os.path.join(build_path, "Nexus-Mod-Manager"))) |
| 80 | + .depend(build.Execute(prepare_nmm, name="append NexusClientCli project to NMM") |
| 81 | + .depend(github.Source("Nexus-Mods", "Nexus-Mod-Manager", config["nmm_version"], None, False)) |
| 82 | + .depend(github.Source(config['Main_Author'], "modorganizer-NCC", config["Main_Branch"]) |
| 83 | + .set_destination("NexusClientCli")))))) \ |
| 84 | + .depend("nuget") |
0 commit comments