Fix issue with spaces in username
For reasons lost in time my username on my laptop has spaces. That means %LocalAppData% will also have spaces. That means calls to exes in LocalAppData must be quoted. The build.cmd batch file will fail without such quoted exe names.
This commit is contained in:
parent
d5f593ebf7
commit
f774702147
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue