anchor.diff:  mkdir      node_modules\daedalus-client-api
   
   pushd node_modules\daedalus-client-api
  -    powershell -Command "try { $wc = New-Object net.webclient; $wc.Downloadfile('https://ci.appveyor.com/api/projects/jagajaga/cardano-sl/artifacts/CardanoSL.zip?branch=%CARDANO_BRANCH%', 'CardanoSL.zip'); } catch { exit 1; }"
  -    @if %errorlevel% neq 0 (@echo FAILED: powershell -Command "try { $wc = New-Object net.webclient; $wc.Downloadfile('https://ci.appveyor.com/api/projects/jagajaga/cardano-sl/artifacts/CardanoSL.zip?branch=%CARDANO_BRANCH%', 'CardanoSL.zip'); } catch { exit 1; }"
  +    del /f CardanoSL.zip 2>nul
  +    ..\..\curl --location %CARDANO_URL% -o CardanoSL.zip
  +    @if %errorlevel% neq 0 (@echo FAILED: couldn't obtain the cardano-sl package
   	popd & exit /b 1)
       @for /F "usebackq" %%A in ('CardanoSL.zip') do set size=%%~zA
       if %size% lss %MIN_CARDANO_BYTES% (@echo FAILED: CardanoSL.zip is too small: threshold=%MIN_CARDANO_BYTES%, actual=%size% bytes
  
positive.code: 
  @echo Packaging frontend
  call npm run package -- --icon installers/icons/64x64
  @if %errorlevel% neq 0 (@echo FAILED: npm run package -- --icon installers/icons/64x64
  	exit /b 1)
  
  pushd installers
      @echo Installing stack
      powershell -Command "try { $wc = New-Object net.webclient; $wc.Downloadfile('http://www.stackage.org/stack/windows-x86_64', 'stack.zip'); } catch { exit 1; }"
      @if %errorlevel% neq 0 (@echo powershell -Command "try { $wc = New-Object net.webclient; $wc.Downloadfile('http://www.stackage.org/stack/windows-x86_64', 'stack.zip'); } catch { exit 1; }"
  	popd & exit /b 1)
      del /f stack.exe
      7z x stack.zip stack.exe
      @if %errorlevel% neq 0 (@echo FAILED: 7z x stack.zip stack.exe
  	exit /b 1)
      del stack.zip
  
  
negative.code: @if [%CARDANO_BRANCH%]==[]   (@echo NOTE: CARDANO_BRANCH [argument #2] was not provided
      exit /b 1);
  
  set CURL_URL=https://bintray.com/artifact/download/vszakats/generic/curl-%CURL_VERSION%-win64-mingw.7z
  set CURL_BIN=curl-%CURL_VERSION%-win64-mingw\bin
  set CARDANO_URL=https://ci.appveyor.com/api/projects/jagajaga/cardano-sl/artifacts/CardanoSL.zip?branch=%CARDANO_BRANCH%
  set LIBRESSL_URL=https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-%LIBRESSL_VERSION%-windows.zip
  set DLLS_URL=https://s3.eu-central-1.amazonaws.com/cardano-sl-testing/DLLs.zip
  
  @echo Building Daedalus version:  %DAEDALUS_VERSION%
  @echo ..with Cardano branch:      %CARDANO_BRANCH%
  @echo ..with LibreSSL version:    %LIBRESSL_VERSION%
  @echo .
  
  @echo Obtaining curl
  powershell -Command "try { Import-Module BitsTransfer; Start-BitsTransfer -Source '%CURL_URL%' -Destination 'curl.7z'; } catch { exit 1; }"
  @if %errorlevel% neq 0 (@echo FAILED: couldn't obtain curl from %CURL_URL% using BITS
  	popd & exit /b 1)
  del /f curl.exe curl-ca-bundle.crt libcurl.dll
  7z e curl.7z %CURL_BIN%\curl.exe %CURL_BIN%\curl-ca-bundle.crt %CURL_BIN%\libcurl.dll
  @if %errorlevel% neq 0 (@echo FAILED: couldn't extract curl from downloaded archive
  	popd & exit /b 1)
  
  call npm install
  @if %errorlevel% neq 0 (@echo FAILED: npm install
  