Merge pull request #5335 from mono/master-bump-fsharp
[mono.git] / packaging / MacSDK / nuget.py
index a603b1e86ee4bbb55d584b8cb8469e522902bb7f..a28b37c0a07b0cb1c751d8609805712c93f7e6df 100644 (file)
@@ -4,15 +4,15 @@ import fileinput
 class NuGetBinary (Package):
 
     def __init__(self):
-        Package.__init__(self, name='NuGet', version='4.5.0', sources=[
-                         'https://dist.nuget.org/win-x86-commandline/v%{version}/NuGet.exe'])
+        Package.__init__(self, name='NuGet', version='4.3.0-preview1', sources=[
+                         'https://dist.nuget.org/win-x86-commandline/v%{version}/nuget.exe'])
 
     def build(self):
         pass
 
     def install(self):
-        source = os.path.join(self.workspace, 'NuGet.exe')
-        target = os.path.join(self.staged_prefix, 'lib/mono/nuget/NuGet.exe')
+        source = os.path.join(self.workspace, 'nuget.exe')
+        target = os.path.join(self.staged_prefix, 'lib/mono/nuget/nuget.exe')
         ensure_dir(os.path.dirname(target))
         shutil.move(source, target)
 
@@ -21,6 +21,6 @@ class NuGetBinary (Package):
         with open(launcher, "w") as output:
             output.write("#!/bin/sh\n")
             output.write(
-                'exec "{0}/bin/mono" $MONO_OPTIONS "{1}" "$@"\n'.format(self.staged_prefix, target))
+                'exec {0}/bin/mono $MONO_OPTIONS {1} "$@"\n'.format(self.staged_prefix, target))
         os.chmod(launcher, 0o755)
 NuGetBinary()