Merge pull request #239 from jmbucknall/FixBuild

Fix issue with spaces in username
This commit is contained in:
Scott Lovegrove 2015-12-24 08:48:40 +00:00
commit 7cacaeaca1
2 changed files with 3 additions and 3 deletions

View File

@ -28,12 +28,12 @@ IF NOT EXIST %MSBUILD14_TOOLS_PATH% (
IF EXIST %CACHED_NUGET% goto restore
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
IF NOT EXIST "%LocalAppData%\NuGet" md "%LocalAppData%\NuGet"
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://dist.nuget.org/win-x86-commandline/latest/nuget.exe' -OutFile '%CACHED_NUGET%'"
:restore
IF EXIST "%~dp0src\packages" goto build
%CACHED_NUGET% restore %SOLUTION_PATH%
"%CACHED_NUGET%" restore %SOLUTION_PATH%
:build

View File

@ -22,7 +22,7 @@ ECHO Created Writer NuGet package.
MOVE .\Releases\Setup.exe .\Releases\OpenLiveWriterSetup.exe
ECHO Created Open Live Writer setup file.
%LocalAppData%\Nuget\Nuget.exe pack .\OpenLiveWriter.Install.nuspec -version %dottedVersion% -basepath Releases
"%LocalAppData%\Nuget\Nuget.exe" pack .\OpenLiveWriter.Install.nuspec -version %dottedVersion% -basepath Releases
ECHO Created Writer Chocolatey Package
:end