From 6769b9eeb6322e992351ce67b0ccafc1724b173f Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Wed, 9 Aug 2017 18:50:01 -0500 Subject: [PATCH] Update Windows build script to build daemon URL from package.json Before, it was using the DAEMON_URL file, which no longer exists. --- build/build.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/build.ps1 b/build/build.ps1 index 569fbd875..ac0951d81 100644 --- a/build/build.ps1 +++ b/build/build.ps1 @@ -29,7 +29,10 @@ cd .. # get daemon and cli executable -$daemon_url = (Get-Content build\DAEMON_URL -Raw).replace("OSNAME", "windows") +$package_settings = (Get-Content app\package.json -Raw | ConvertFrom-Json).lbrySettings +$daemon_ver = $package_settings.lbrynetDaemonVersion +$daemon_url_template = $package_settings.lbrynetDaemonUrlTemplate +$daemon_url = $daemon_url_template.Replace('OSNAME', 'windows').Replace('DAEMONVER', $daemon_ver) Invoke-WebRequest -Uri $daemon_url -OutFile daemon.zip Expand-Archive daemon.zip -DestinationPath app\dist\ dir app\dist\ # verify that daemon binary is there