Save architecture used to fetch the build to fileinfo
This commit is contained in:
parent
aa2dbd2938
commit
42b1091c0b
@ -433,6 +433,7 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku
|
|||||||
$temp['flight'] = $flight;
|
$temp['flight'] = $flight;
|
||||||
$temp['branch'] = $branch;
|
$temp['branch'] = $branch;
|
||||||
$temp['arch'] = $foundArch;
|
$temp['arch'] = $foundArch;
|
||||||
|
$temp['fetchArch'] = $arch == 'all' ? 'amd64' : $arch;
|
||||||
$temp['build'] = $foundBuild;
|
$temp['build'] = $foundBuild;
|
||||||
$temp['checkBuild'] = $build;
|
$temp['checkBuild'] = $build;
|
||||||
$temp['sku'] = $sku;
|
$temp['sku'] = $sku;
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function uupApiVersion() {
|
function uupApiVersion() {
|
||||||
return '1.44.3';
|
return '1.45.0';
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once dirname(__FILE__).'/auths.php';
|
require_once dirname(__FILE__).'/auths.php';
|
||||||
|
@ -316,11 +316,19 @@ function composeFileGetRequest($updateId, $info, $rev = 1, $type = 'Production')
|
|||||||
$created = gmdate(DATE_W3C, $createdTime);
|
$created = gmdate(DATE_W3C, $createdTime);
|
||||||
$expires = gmdate(DATE_W3C, $expiresTime);
|
$expires = gmdate(DATE_W3C, $expiresTime);
|
||||||
|
|
||||||
|
$arch = 'amd64';
|
||||||
|
|
||||||
|
if(isset($info['fetchArch'])) {
|
||||||
|
$arch = $info['fetchArch'];
|
||||||
|
} elseif(isset($info['arch'])) {
|
||||||
|
$arch = $info['arch'];
|
||||||
|
}
|
||||||
|
|
||||||
$deviceAttributes = composeDeviceAttributes(
|
$deviceAttributes = composeDeviceAttributes(
|
||||||
isset($info['flight']) ? $info['flight'] : 'Active',
|
isset($info['flight']) ? $info['flight'] : 'Active',
|
||||||
isset($info['ring']) ? $info['ring'] : 'RETAIL',
|
isset($info['ring']) ? $info['ring'] : 'RETAIL',
|
||||||
isset($info['checkBuild']) ? $info['checkBuild'] : '10.0.19041.1',
|
isset($info['checkBuild']) ? $info['checkBuild'] : '10.0.19041.1',
|
||||||
isset($info['arch']) ? $info['arch'] : 'amd64',
|
$arch,
|
||||||
isset($info['sku']) ? $info['sku'] : 48,
|
isset($info['sku']) ? $info['sku'] : 48,
|
||||||
$type,
|
$type,
|
||||||
isset($info['flags']) ? $info['flags'] : [],
|
isset($info['flags']) ? $info['flags'] : [],
|
||||||
|
Loading…
Reference in New Issue
Block a user