From 12dd4d91bdad03de82a695eccff86e06efa4803f Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Thu, 8 May 2025 09:32:54 -0700 Subject: [PATCH] build: move release script to new hasher function (#46996) build: move to new hasher function Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Keeley Hammond --- script/release/get-url-hash.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/release/get-url-hash.ts b/script/release/get-url-hash.ts index b4fc10b053b0..ebbf5bce54c6 100644 --- a/script/release/get-url-hash.ts +++ b/script/release/get-url-hash.ts @@ -2,12 +2,12 @@ import got from 'got'; import * as url from 'node:url'; -const HASHER_FUNCTION_HOST = 'electron-artifact-hasher.azurewebsites.net'; -const HASHER_FUNCTION_ROUTE = '/api/HashArtifact'; +const HASHER_FUNCTION_HOST = 'electron-hasher.azurewebsites.net'; +const HASHER_FUNCTION_ROUTE = '/api/hashRemoteAsset'; export async function getUrlHash (targetUrl: string, algorithm = 'sha256', attempts = 3) { const options = { - code: process.env.ELECTRON_ARTIFACT_HASHER_FUNCTION_KEY!, + code: process.env.ELECTRON_HASHER_FUNCTION_KEY!, targetUrl, algorithm };